js-yaml-type-data
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

js-yaml-type-data

Use it like this:

import createDataType from 'js-yaml-type-data'
 
const type = createDataType({
  relativeTo: './path', // is optional and defaults to the current directory
})
const schema = new yaml.Schema({
  include: [yaml.DEFAULT_SAFE_SCHEMA],
  explicit: [type],
})
const parsed = yaml.load(`
includedPNG: !!data "file.png"
`, { schema })

Readme

Keywords

Package Sidebar

Install

npm i js-yaml-type-data

Weekly Downloads

5

Version

1.0.1

License

MIT

Unpacked Size

162 kB

Total Files

15

Last publish

Collaborators

  • jaulz