{"name":"yaml-js","version":"0.0.1","description":"Pure Javascript port of PyYAML","repository":{"type":"git","url":"git://github.com/connec/yaml-js.git"},"devDependencies":{"squash":">= 0.0.8"},"license":"WTFPL","_npmUser":{"name":"connec","email":"connec.2002@gmail.com"},"_id":"yaml-js@0.0.1","dependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-beta-4","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"57fcded68fb5feb0ea34b1a084e192d0050211f9","tarball":"http://registry-npm.ywwl.com/yaml-js/download/yaml-js-0.0.1.tgz","integrity":"sha512-ULOPbvqSbXS2OA6mrhLDcv67IrtTpRyg3TIXZ5qXnqDJrcDVWUyL3hksP19IAyshSBU+OmEgcZIQY1pQRaordQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGsQRM+7koQRt4d2/eLst/FT/sFFtUTzKb+j2DP6DsIhAiAxwSPrfziiiZHOOPHoPeHfbr9gSgUtxKuHOmSPnnsAJA=="}],"size":73346,"noattachment":false,"key":"/yaml-js/-/yaml-js-0.0.1.tgz"},"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":1325720861375,"_cnpm_publish_time":1325720861375,"dist-tags":{"latest":"0.3.1"}}