{"name":"yaml","version":"1.0.0-beta.4","keywords":["YAML","parser","stringifier"],"author":{"name":"Eemeli Aro","email":"eemeli@gmail.com"},"license":"ISC","_id":"yaml@1.0.0-beta.4","maintainers":[{"name":"eemeli","email":"eemeli@gmail.com"},{"name":"jbnicolai","email":"jappelman@xebia.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"homepage":"https://github.com/eemeli/yaml#readme","bugs":{"url":"https://github.com/eemeli/yaml/issues"},"dist":{"shasum":"c04bd5411e6126d773604c3a1725c8a025813d3f","tarball":"http://registry-npm.ywwl.com/yaml/download/yaml-1.0.0-beta.4.tgz","fileCount":36,"integrity":"sha512-4/ByzApkMcjsnml9sr1R8gpzw7WpnQMiKp7QVhnJzaJUUa4wjekR0eqJbFqM3Wa/r5QZLxaE9du6nTbVxVMobg==","signatures":[{"sig":"MEUCIG6X3S42ATedqr3HOUHJL8D0UBaLVvRYUYKXjat6V9HZAiEA6w1HK5DmhN+EyTTG0Fbn3RY707jzfdYCtDLPNwaJlZU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":178033,"size":30992,"noattachment":false,"key":"/yaml/-/yaml-1.0.0-beta.4.tgz"},"jest":{"testPathIgnorePatterns":["__tests__/common","__tests__/ast/common"]},"main":"dist/index.js","babel":{"plugins":[["trace",{"strip":true}]],"presets":["@babel/env","@babel/stage-3"]},"files":["dist/"],"readme":"# YAML\n\nJavaScript parser and stringifier for [YAML 1.2](http://yaml.org/)\n\nNote: `yaml` 0.x and 1.x are rather different implementations. For the earlier `yaml`, see [tj/js-yaml](https://github.com/tj/js-yaml).\n\n\n## Usage\n\n```\nnpm install yaml@next\n```\n\n```js\nimport { resolve } from 'yaml'\n\nconst yaml =\n`YAML:\n  - A human-readable data serialization language\n  - https://en.wikipedia.org/wiki/YAML\nyaml:\n  - A complete JavaScript implementation\n  - https://www.npmjs.com/package/yaml\n`\n\nconst doc = resolve(yaml)[0]\n\ndoc.toJSON()\n/*\n *  { YAML:\n *    [ 'A human-readable data serialization language',\n *      'https://en.wikipedia.org/wiki/YAML' ],\n *    yaml:\n *    [ 'A complete JavaScript implementation',\n *      'https://www.npmjs.com/package/yaml' ] }\n*/\n\ndoc.toString() === yaml\n```\n\n\n## Beta Progress\n\nThe reason why this project exists is to have a tool that's capable of properly generating and handling YAML files with comments, specifically to provide context for translation strings that have been lifted out of JS source code. We're not there quite yet, as the prerequisite for that is having a complete and functioning YAML library.\n\nThe [AST level] of the library has been released separately, and is fully functional.\n\n\n### What Works So Far\n\n#### Parsing\n- Support for all YAML node types, including alias nodes and multi-document streams\n- Complete support for the Fallback, JSON, and Core [Schemas], as well as an \"extended\" schema that covers all of the YAML 1.1 scalar [types] except for `!!yaml`.\n- Support for `<<` merge keys (default-disabled, enable with `merge: true` option)\n- Complete match between the parsed `in.yaml`, `in.json`, `out.yaml`, and `error` files across all of the [yaml-test-suite] test cases (note: A few of the tests are not in agreement with the spec, so this requires the use of a [custom branch] until the relevant [pull requests] and [issues] are resolved)\n- Comments are parsed and included up to the [AST level] of the API\n- \"Native\" `Map` and `Seq` collections have `toJSON()` methods for bare JavaScript `Object` and `Array` output\n- Any string input should be accepted, and produce some output. Errors (if any) are not thrown, but included in the document's `errors` array\n\n[Schemas]: http://www.yaml.org/spec/1.2/spec.html#Schema\n[types]: http://yaml.org/type/\n[yaml-test-suite]: https://github.com/yaml/yaml-test-suite\n[custom branch]: https://github.com/eemeli/yaml-test-suite/tree/fixed-data\n[pull requests]: https://github.com/yaml/yaml-test-suite/pulls/eemeli\n[issues]: https://github.com/yaml/yaml-test-suite/issues/created_by/eemeli\n[AST level]: src/ast/README.md\n\n#### Stringifying\n- `Document#toString()` produces idempotent YAML from all non-error spec examples and test suite cases\n- `AST#toString()` works completely, but is clumsy to use\n\n\n### Still Needs Work\n\n- Object creation: `Document`, `Map` and `Seq` need constructors accepting plain JS objects\n- Long lines should be wrapped\n- Collections need to retain tag and comment data\n- Item add/remove should keep tags and comments in place\n- Explicit tags are not included in the stringified output\n- API needs finalising\n- Better documentation\n","gitHead":"443ddb7898a88ae379862ce4f5c7457572000556","scripts":{"test":"TRACE_LEVEL=log jest","build":"babel src/ --out-dir dist/","version":"git commit -am \"Update version\" && git add -f dist/","preversion":"npm test && npm run build","test:trace":"TRACE_LEVEL=trace,log jest --no-cache","postversion":"git reset --hard HEAD^","prepublishOnly":"npm test && npm run build"},"_npmUser":{"name":"eemeli","email":"eemeli@gmail.com"},"repository":{"url":"git+https://github.com/eemeli/yaml.git","type":"git"},"_npmVersion":"5.8.0","description":"JavaScript parser and stringifier for YAML 1.2","directories":{},"_nodeVersion":"9.5.0","dependencies":{},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^22.3.0","@babel/cli":"^7.0.0-beta.40","babel-core":"^7.0.0-bridge.0","babel-jest":"^22.2.2","@babel/core":"^7.0.0-beta.40","@babel/preset-env":"^7.0.0-beta.40","babel-plugin-trace":"^1.1.0","@babel/preset-stage-3":"^7.0.0-beta.40"},"_npmOperationalInternal":{"tmp":"tmp/yaml_1.0.0-beta.4_1523192219652_0.9381838682754213","host":"s3://npm-registry-packages"},"publish_time":1523192219760,"_cnpm_publish_time":1523192219760,"dist-tags":{"latest":"2.9.1","next":"3.0.0-2"}}