js-yaml-js-types
js-yaml extra types
Last updated 4 years ago by vitaly .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install js-yaml-js-types 
SYNC missed versions from official npm registry.

js-yaml-js-types

CI NPM version

js-yaml extra types:

  • !!js/regexp /pattern/gim
  • !!js/undefined ''
  • !!js/function 'function () {...}'

Installation

npm install js-yaml-js-types

Usage

const yaml = require('js-yaml');
const unsafe = require('js-yaml-js-types').all;

const schema = yaml.DEFAULT_SCHEMA.extend(unsafe);

const src = `
- !!js/regexp /pattern/gim
- !!js/undefined ''
- !!js/function 'function () { return true }'
`

yaml.load(src, { schema });

Current Tags

  • 1.0.1                                ...           latest (4 years ago)

2 Versions

  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Total 8
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 6
Dependencies (1)
Dev Dependencies (4)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE