1.0.1 • Published 5 years ago

js-yaml-type-data v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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

5 years ago

1.0.0

5 years ago