{"name":"toml","version":"2.3.5","description":"TOML parser for Node.js (parses TOML spec v0.4.0)","main":"index.js","types":"index.d.ts","scripts":{"build":"pegjs --cache src/toml.pegjs lib/parser.js","test":"jshint lib/compiler.js && nodeunit test/test_*.js","prepublish":"npm run build"},"repository":{"type":"git","url":"git://github.com/BinaryMuse/toml-node.git"},"keywords":["toml","parser"],"author":{"name":"Michelle Tilley","email":"michelle@michelletilley.net"},"license":"MIT","devDependencies":{"jshint":"*","nodeunit":"~0.9.0","pegjs":"~0.8.0"},"gitHead":"2311a82d39e4abde84779e4797d44f492b6298e3","bugs":{"url":"https://github.com/BinaryMuse/toml-node/issues"},"homepage":"https://github.com/BinaryMuse/toml-node#readme","_id":"toml@2.3.5","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"binarymuse","email":"michelle@michelletilley.net"},"dist":{"integrity":"sha512-ulY/Z2yPWKl/3JvGJvnEe7mXqVt2+TtDoRxJNgTAwO+3lwXefeCHS697NN0KRy6q7U/b1MnSnj/UGF/4U0U2WQ==","shasum":"a1f5d7f7efd300fa426258f3e74374536191e3db","tarball":"http://registry-npm.ywwl.com/toml/download/toml-2.3.5.tgz","fileCount":24,"unpackedSize":143997,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcL+pNCRA9TVsSAnZWagAAUQYP/22ndjCvNBwvtZmCCjlv\nKR5e5TX9ozqe5wYJUxAwUZl3ogMJYE/OdHG8w1HcZSzYbSS9b9cNPuH1Vr1a\n92jTB6EZEp/58XIul+Xz1t2FqG/hsFJL7ZtuEwgdpGmuLOsKcMidIFIKdyCj\n/pUMXFVqaKvqIxQoE1ywkFGuI/xTTKwUQXaVFjrfqrl6SY0iCL96v0A7WmQI\nMzbRAMB0B5WR5nC0IB/PtIcEt4dSSSS9i50aMdPaCrtUqRdpxdufGR5vm82d\nG/KOuFx8+S6Pwg71TOaCo1z8nxwR/5sf8eyS0r37agm0yrE/R30Te+/68Bl2\nDDw9j55wgZ7eyidJIy00KBVxKtlROEyeDwtGnD7t1NBz3xphV6f/oHOlBGh2\n+8EKXMlFlvDtmqPnyV1djcDX35fbwPONaQckYHcSY7HURL3y1BR/5+uZMZk3\n9RuX1d8Ej6RQnPXDPRTHC/SPluzd37d2EvBJ2fbf498HV9Ixd69WI+tdHPrA\n8Qa/idBdjT03+Z5U1StoXiEoURzxlql3T0Lp7VDMa5K5ViiImibeq9JCCYl5\nLR64oGEQp+lrDeWUvuqmmGF6GsKhc29/H/KAmjmwaNY2xpsi/kwnBJ1Qz9fk\nZyJgDD0C6KCbmfI34RiCMpv4605cfDCurHL3mxZyFrqh6E8rkxLD7BD93IMe\nXmz3\r\n=5P+L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID2u5CAKl3tSyu0/Yz0ztHsLGklhQj5GV+B94vP1x2BiAiEA+Ndju/6CvX3GtyOi8V2mJVTjJHwtnZSlzj4LTjVuKbE="}],"size":21376,"noattachment":false,"key":"/toml/-/toml-2.3.5.tgz"},"maintainers":[{"name":"binarymuse","email":"brandon@brandontilley.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toml_2.3.5_1546644045120_0.5233617575936358"},"_hasShrinkwrap":false,"readme":"TOML Parser for Node.js\n=======================\n\n[![Build Status](https://travis-ci.org/BinaryMuse/toml-node.png?branch=master)](https://travis-ci.org/BinaryMuse/toml-node)\n\n[![NPM](https://nodei.co/npm/toml.png?downloads=true)](https://nodei.co/npm/toml/)\n\nIf you haven't heard of TOML, well you're just missing out. [Go check it out now.](https://github.com/mojombo/toml) Back? Good.\n\nTOML Spec Support\n-----------------\n\ntoml-node supports version 0.4.0 the TOML spec as specified by [mojombo/toml@v0.4.0](https://github.com/mojombo/toml/blob/master/versions/en/toml-v0.4.0.md)\n\nInstallation\n------------\n\ntoml-node is available via npm.\n\n    npm install toml\n\ntoml-node also works with browser module bundlers like Browserify and webpack.\n\nUsage\n-----\n\n### Standalone\n\nSay you have some awesome TOML in a variable called `someTomlString`. Maybe it came from the web; maybe it came from a file; wherever it came from, it came asynchronously! Let's turn that sucker into a JavaScript object.\n\n```javascript\nvar toml = require('toml');\nvar data = toml.parse(someTomlString);\nconsole.dir(data);\n```\n\n`toml.parse` throws an exception in the case of a parsing error; such exceptions have a `line` and `column` property on them to help identify the offending text.\n\n```javascript\ntry {\n  toml.parse(someCrazyKnuckleHeadedTrblToml);\n} catch (e) {\n  console.error(\"Parsing error on line \" + e.line + \", column \" + e.column +\n    \": \" + e.message);\n}\n```\n\n### Streaming\n\nAs of toml-node version 1.0, the streaming interface has been removed. Instead, use a module like [concat-stream](https://npmjs.org/package/concat-stream):\n\n```javascript\nvar toml = require('toml');\nvar concat = require('concat-stream');\nvar fs = require('fs');\n\nfs.createReadStream('tomlFile.toml', 'utf8').pipe(concat(function(data) {\n  var parsed = toml.parse(data);\n}));\n```\n\nThanks [@ForbesLindesay](https://github.com/ForbesLindesay) for the suggestion.\n\n### Requiring with Node.js\n\nYou can use the [toml-require package](https://github.com/BinaryMuse/toml-require) to `require()` your `.toml` files with Node.js\n\nLive Demo\n---------\n\nYou can experiment with TOML online at http://binarymuse.github.io/toml-node/, which uses the latest version of this library.\n\nBuilding & Testing\n------------------\n\ntoml-node uses [the PEG.js parser generator](http://pegjs.majda.cz/).\n\n    npm install\n    npm run build\n    npm test\n\nAny changes to `src/toml.peg` requires a regeneration of the parser with `npm run build`.\n\ntoml-node is tested on Travis CI and is tested against:\n\n * Node 0.10\n * Node 0.12\n * Latest stable io.js\n\nLicense\n-------\n\ntoml-node is licensed under the MIT license agreement. See the LICENSE file for more information.\n","publish_time":1546644045251,"_cnpm_publish_time":1546644045251,"dist-tags":{"latest":"5.0.1"}}