{"name":"yaml-js","version":"0.0.8","description":"Pure Javascript YAML parser, ported from PyYAML","main":"./lib/yaml","repository":{"type":"git","url":"http://github.com/connec/yaml-js.git"},"devDependencies":{"coffee-script":"1.6.x","plantation":"0.0.7","squash":"0.0.12"},"license":"WTFPL","_id":"yaml-js@0.0.8","dist":{"shasum":"87cfa5a9613f48e26005420d6a8ee0da6fe8daec","tarball":"http://registry-npm.ywwl.com/yaml-js/download/yaml-js-0.0.8.tgz","integrity":"sha512-XCqDFUhDO3yhT+Rb/inT3uiC8ekx2lXHDgDeXY8V0Lgkx4yEhzhxraYQxtuajydIrx8L8KmF9OeKCDlyCjvnMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC9KAd4zHk81AyPeil6H+QuYebXnhQAdHlRd/3QKTFFsAiEAm6o2IqrAtNinjIBajzSp7dmWhsKsJ7vx42+TYBDBnVY="}],"size":79257,"noattachment":false,"key":"/yaml-js/-/yaml-js-0.0.8.tgz"},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"connec","email":"chris@connec.co.uk"},"maintainers":[{"name":"connec","email":"connec.2002@gmail.com"}],"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":1376599113778,"_cnpm_publish_time":1376599113778,"dist-tags":{"latest":"0.3.1"}}