{"name":"yaml-js","version":"0.2.1","description":"Pure Javascript YAML loader and dumper, ported from PyYAML","main":"./lib/yaml","repository":{"type":"git","url":"git+ssh://git@github.com/connec/yaml-js.git"},"devDependencies":{"chai":"^2.3.0","coffeescript":"github:connec/coffeescript##4827","mocha":"^2.5.3","plantation":"0.0.17","sinon":"^1.17.6","sinon-chai":"^2.8.0","squash":"0.0.14"},"license":"WTFPL","gitHead":"56f99cd4a22cf415627d000bbde4e7091db69eb5","bugs":{"url":"https://github.com/connec/yaml-js/issues"},"homepage":"https://github.com/connec/yaml-js#readme","_id":"yaml-js@0.2.1","_npmVersion":"5.3.0","_nodeVersion":"8.1.2","_npmUser":{"name":"connec","email":"chris@connec.co.uk"},"dist":{"integrity":"sha512-TBshcyNrIfkAD+3EfrokWL9oI3MYnvv8HHCR0Fm69RzunaWOhJumPvqyvCjWW7RaVixTUKPvn4Mh39iMSGCP6w==","shasum":"1c8f76cb17e4fc1f1c2956af0f7ead6e3a989a38","tarball":"http://registry-npm.ywwl.com/yaml-js/download/yaml-js-0.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBKm8B518l0cZFPuHYILBSuxxLpyB00VOD48a2eesW4DAiEAiL0d2G71nNjTYsX9D2R7RJ+qcFKL3A8frbpKKy/ZNIQ="}],"size":123164,"noattachment":false,"key":"/yaml-js/-/yaml-js-0.2.1.tgz"},"maintainers":[{"name":"connec","email":"connec.2002@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-js-0.2.1.tgz_1513616269798_0.2438975570257753"},"directories":{},"readme":"⚠️Abandoned\n---\n\nThis project is now abandoned and the repository archived.\nThe license should allow you to fork and do whatever you want, in case you cannot migrate to a different YAML library.\n\nFun history fact: when I made the port there wasn't another pure JS YAML parser - the [initial commit](https://github.com/connec/yaml-js/commit/5b493a680e20d15ef2139ac7b8f1096c185cca51) for this repo was just a couple of days before the [initial release of js-yaml](https://www.npmjs.com/package/js-yaml/v/0.2.0)!\n\nyaml-js\n===\n\nyaml-js is a YAML loader and dumper, ported pretty much line-for-line from\n[PyYAML](http://pyyaml.org/).  The goal for the project is to maintain a reliable and\nspecification-complete YAML processor in pure Javascript, with CoffeeScript source code.  You can\ntry it out [here](http://connec.github.io/yaml-js/).\n\nLoading is stable and well-used, and passes the [yaml-spec](https://github.com/connec/yaml-spec)\ntest suite, which fairly thoroughly covers the YAML 'core' schema.\n\nDumping is present but very lightly tested (auto-tests only, no significant usage).  The output\nshould therefore be correct YAML, however formatting is currently entirely untested.\n\nHow Do I Get It?\n---\n\n    npm install yaml-js\n\nHow Do I Use It?\n---\n\n```javascript\n// Server (e.g. node.js)\nvar yaml = require('yaml-js');\n\n// Browser\n// <script src='yaml.min.js'></script>\n\n// Loading\nconsole.log(yaml.load(\n  '---\\n' +\n  'phrase1:\\n' +\n  '  - hello\\n' +\n  '  - &world world\\n' +\n  'phrase2:\\n' +\n  '  - goodbye\\n' +\n  '  - *world\\n' +\n  'phrase3: >\\n' +\n  '  What is up\\n' +\n  '  in this place.'\n));\n// { phrase1: [ 'hello', 'world' ],\n//   phrase2: [ 'goodbye', 'world' ],\n//   phrase3: 'What is up in this place.' }\n\n// Dumping\nconsole.log(yaml.dump({\n  phrase1: [ 'hello',   'world' ],\n  phrase2: [ 'goodbye', 'world' ],\n  phrase3: 'What is up in this place.'\n}));\n// phrase1: [hello, world]\n// phrase2: [goodbye, world]\n// phrase3: What is up in this place.\n```\n\n### API summary\n\n| Method          | Description                                                                                     |\n|-----------------|-------------------------------------------------------------------------------------------------|\n| **`load`**      | Parse the first YAML document in a stream and produce the corresponding Javascript object.      |\n| **`dump`**      | Serialize a Javascript object into a YAML stream.                                               |\n| `load_all`      | Parse all YAML documents in a stream and produce the corresponing Javascript objects.           |\n| `dump_all`      | Serialize a sequence of Javascript objects into a YAML stream.                                  |\n| `scan`          | Scan a YAML stream and produce tokens.                                                          |\n| `parse`         | Parse a YAML stream and produce events.                                                         |\n| `compose`       | Parse the first YAML document in a stream and produce the corresponding representation tree.    |\n| `compose_all`   | Parse all YAML documents in a stream and produce corresponding representation trees.            |\n| `emit`          | Emit YAML parsing events into a stream.                                                         |\n| `serialize`     | Serialize a representation tree into a YAML stream.                                             |\n| `serialize_all` | Serialize a sequence of representation trees into a YAML stream.                                |\n\nLicense\n---\n\n[WTFPL](http://sam.zoy.org/wtfpl/)\n","publish_time":1513616269896,"_cnpm_publish_time":1513616269896,"dist-tags":{"latest":"0.3.1"}}