js-yaml-js-types

1.0.1 • Public • Published

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 });

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    18,830
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    18,830
  • 1.0.0
    21,762

Package Sidebar

Install

npm i js-yaml-js-types

Weekly Downloads

40,592

Version

1.0.1

License

MIT

Unpacked Size

7.25 kB

Total Files

7

Last publish

Collaborators

  • vitaly