1.1.5 • Published 5 years ago

js-yaml-type-include v1.1.5

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

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

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago