1.1.5 • Published 6 years ago

js-yaml-type-include v1.1.5

Weekly downloads
3
License
MIT
Repository
github
Last release
6 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

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago