{"name":"yaml-js","version":"0.3.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"},"engines":{"node":">=8"},"devDependencies":{"chai":"^2.3.0","coffeescript":"^2.5.1","mocha":"^9.1.1","plantation":"0.0.19","sinon":"^1.17.6","sinon-chai":"^2.8.0","squash":"0.0.18","yaml-js":"."},"license":"WTFPL","gitHead":"2f9776c9e0a685aab5ab437ec0fb86420511d4bc","bugs":{"url":"https://github.com/connec/yaml-js/issues"},"homepage":"https://github.com/connec/yaml-js#readme","_id":"yaml-js@0.3.1","_nodeVersion":"12.12.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-LjoIFHCtSfkGzPsmYmfDsW+TShtQBcY7lwH1yLQ5brJHXRhjteUnVE2ThCbz1madq8JUZIAjFiavfnIFeTO8CQ==","shasum":"8f6f4300063364c2778be30f220736ae5e92c23c","tarball":"http://registry-npm.ywwl.com/yaml-js/download/yaml-js-0.3.1.tgz","fileCount":50,"unpackedSize":729066,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3CFNCRA9TVsSAnZWagAAxzoQAI5xZKvaTYfHgtCNysu5\nbjaEY+MwmJ9WmZbyVt4gjgLSHrFs+yXLgV+SD6YdDeVUXYil59sDsZM6pNgf\n3GJS5NfykwytTi5MJRJVOglUYS5ldg4SyonR6XmZ7CcOQYk7O+7RKXGI8kjz\nvyd87i7QXY/RwAQadwTGoJ1qtk0kj6CYtjf0hQEXyZVAuGiW0W/FcikisA+w\n/nKxfntOpEDI83VK8xG7WoxD69I09HeG37YoTkZqXenbuMyE6beARIr3Ib6H\nJuT4kKgivohwPLCNwtuH5klwYfUI39OULOWBqt8I0fVIWYnqkmcCiPsaSoJ9\n8XVegjayXC/n9dz2m5pQc2xJFBKVEBOZlHEqqEG75nTB4zYyu4CHPP0VvsyV\n6uVxn80JKK51Lmd/SdKlewoOrqR6NaGqN6vuF7iFCdzBU0Mrpx/cKfMMkVam\niYsdNjPM6gzHkMSbBrHoPbVOxbf1At10FXMe/uOMiNYSLl6wrA3fvng6z5pQ\n/DxWL6GWfaCKy6HoNWRdcp4Uaw28bXCFpW/TmflzyCJbV8HX53F70dBn8jy3\n/ushAKJqQoYblw2OOaYNQjLsV1roZRUx8KyqfQiu0y1bVvEfdWiuIyp3Axtx\nsA4DqJAXb4dvFp3vLXfuhy/KpjHb+Im6d5n8lOPd9s51i1xV0TbGz7a4VPnH\nSBPV\r\n=8vy6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRn/UVfx2AGtvQnwmYY55YaswdJnFw5RLlGwDHuaZCtgIgQGQQOn5aBPVMHwhfH901xEXyXrWQC1K4C5YEOZHa5oU="}],"size":120321,"noattachment":false,"key":"/yaml-js/-/yaml-js-0.3.1.tgz"},"_npmUser":{"name":"connec","email":"chris@connec.co.uk"},"directories":{},"maintainers":[{"name":"connec","email":"chris@connec.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-js_0.3.1_1632083531676_0.20258494160897333"},"_hasShrinkwrap":false,"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":1632083531845,"_cnpm_publish_time":1632083531845,"dist-tags":{"latest":"0.3.1"}}