Introducing npm Teams! Private packages + team management tools.Learn more »

js-yaml-type-include

1.1.5 • Public • Published

js-yaml-type-include

Use it like this:

import { createType } from 'js-yaml-type-include'
 
const type = createType({
  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(
  `
includedFile: !!data "file.txt"
`,
  { schema }
)

Install

npm i js-yaml-type-include

DownloadsWeekly Downloads

27

Version

1.1.5

License

MIT

Unpacked Size

30.5 kB

Total Files

17

Last publish

Collaborators

  • avatar