js-yaml icon indicating copy to clipboard operation
js-yaml copied to clipboard

JavaScript YAML parser and dumper. Very fast.

Results 62 js-yaml issues
Sort by recently updated
recently updated
newest added

```js const yaml = require('js-yaml'); const file = ` name: Node CI on: - push `; const json = yaml.load(file); console.log(yaml.dump(json)); ``` Output: ```yaml name: Node CI 'on': - push...

spec 1.2

now , the following yaml document can be loaded ```yaml &anchor foo: foo: bar *anchor: duplicate key baz: bat *anchor: duplicate key ```

Each nested array will be in a new line if true ``` - - 1 ``` else `- - 1`

Added flag to force style literal when calling yaml.safeDump. Invoke code with forceStyleLiteral: true to force style literal to be kept. yaml.safeDump(res,{lorceStyleLiteral: true}); Referenced in issiue #464. This pull request...

**Context:** Let's say you need to generate a config yaml file for users, but you want some of the config options to be commented out. This way your users can...

Based on the spec for YAML 1.2, underscores shouldn't be allowed in numbers: https://yaml.org/spec/1.2/2009-07-21/spec.html#id2604185 However the latest `js-yaml` still allows them: package.json ``` { "dependencies": { "js-yaml": "^4.1.0" } }...

Parse numbers according to YAML 1.2 instead of YAML 1.1. https://yaml.org/spec/1.2/2009-07-21/spec.html#id2604185

spec 1.2

Hello, today I was hunting for a bug during serializing JSON into YAML. I was getting `unacceptable kind of an object to dump [object Undefined]` but there was no `undefined`...

Checked the links, skipping the redirect HTTP => HTTPS this way 0:-)

https://nodejs.org/dist/latest-v18.x/docs/api/packages.html#subpath-exports Nested levels are not supported.