{"name":"toml-j0.4","version":"1.0.10","description":"A parser only compliant with TOML v0.4.0","main":"toml.js","scripts":{"test":"node node_modules/mocha/bin/mocha --bail --reporter spec test/*.js","build":"node build.js","benchmark":"node benchmark.js","prepublish":"node build.js"},"files":["LICENSE","README.md","dist/toml-browser.js","lib","toml.js"],"keywords":["toml","parser","ini"],"author":{"name":"Jak Wings","email":"jakwings@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/jakwings/toml-j0.4.git"},"licenses":[{"type":"MIT","url":"https://github.com/jakwings/toml-j0.4/blob/master/LICENSE"}],"bugs":{"url":"https://github.com/jakwings/toml-j0.4/issues"},"homepage":"https://github.com/jakwings/toml-j0.4","devDependencies":{"ansi":"^0.3.0","benchmark":"^1.0.0","browserify":"^9.0.8","js-yaml":"^3.2.7","mocha":"~2.2.4","pegjs":"~0.8.0","should":"^6.0.1","toml":"^2.2.2","uglify-js":"^2.4.19"},"gitHead":"bc1ebc2340344b9cd96759fe9b6f765ba2cdc4dc","_id":"toml-j0.4@1.0.10","_shasum":"dab683a9615e72428c1ab93de82722b546b0b31e","_from":".","_npmVersion":"2.8.3","_nodeVersion":"1.8.1","_npmUser":{"name":"jakwings","email":"jakwings@gmail.com"},"maintainers":[{"name":"jakwings","email":"jakwings@gmail.com"}],"dist":{"shasum":"dab683a9615e72428c1ab93de82722b546b0b31e","tarball":"http://registry-npm.ywwl.com/toml-j0.4/download/toml-j0.4-1.0.10.tgz","integrity":"sha512-mTmG4LztCUxhpgAkhsZvOq6Gc+CFHvhQh6GGE3GBQpi/eWKvsYDYb2V8k5lII92mNTmyT36ML4ssKbKLiPcZ3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvKcBJ7jNUOxRncjW/hqNaRB4LZZRqscpzPItYOTC2qQIhAOASrCQFMgtGO8iJnRWg+1lPuE4xq2MUnSRNZ326hfkc"}],"size":18619,"noattachment":false,"key":"/toml-j0.4/-/toml-j0.4-1.0.10.tgz"},"directories":{},"readme":"# TOML-j0.4\n\n[![Build Status](https://travis-ci.org/jakwings/toml-j0.4.svg)](https://travis-ci.org/jakwings/toml-j0.4)\n[![NPM version](https://badge.fury.io/js/toml-j0.4.svg)](http://badge.fury.io/js/toml-j0.4)\n\nAs its name *TOML-j0.4* says, this is a [TOML] v[0.4.0] compliant parser built\nwith [PEG.js]. You can customize it easily by modifying the grammar file\n`toml.pegjs`.\n\n[TOML]: https://github.com/toml-lang/toml\n[0.4.0]: https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.4.0.md\n[PEG.js]: http://pegjs.org\n\n\n### Live Demo\n\n<http://jakwings.github.io/toml-j0.4/>\n\n\n### Usage\n\nYou can install it via `npm install toml-j0.4`, or just include the script\n`dist/toml-browser.js` in your web pages.\n\n```javascript\nvar toml = toml || require('toml-j0.4');\n\ntry {\n    var data = toml.parse(src);\n} catch (err) {\n    if (err instanceof toml.SyntaxError) {\n        // do something\n    }\n}\n```\n\n*   `toml.parse` only accept one argument — data text in TOML\n*   The instance of `toml.SyntaxError` has these properties:\n    * `line`: the line number\n    * `column`: the column number\n    * `offset`: the zero-based offset from the start of the text\n    * `message`: error message\n\nThere is no other API for now. Simple?\n\n\n### Known Problems\n\n*   JavaScript does not have *real* integers.\n\n    All numbers are floats in JavaScript. Any integer bigger than\n    Number.MAX_SAFE_INTEGER (9007199254740991 < 2^63 - 1) or smaller than\n    Number.MIN_SAFE_INTEGER (-9007199254740991 > -(2^63 - 1)) is not safe when\n    being converted or used as pure integer!  Enhancement is welcome!\n\n    I suggest storing big integers in strings.\n\n*   RFC 3339 is not the sole criterion of truth.\n\n    You can't imagine how terrible all minitue details of the standard are! So\n    don't expect some date-times will work anytime and anywhere, for instance,\n    \"2015-02-29T00:00:00Z\", \"2015-12-25T24:00:00Z\", \"2015-11-10T00:60:00Z\",\n    \"2015-11-10T00:00:60Z\", \"2015-12-25T24:00:00+24:00\",\n    \"0000-01-01T00:00:00Z\". Enhancement is welcome!\n\n\n### Contribute\n\nIf you found bugs, welcome to send me a pull request with (only) updated test\nscripts/fixtures!\n\nIn order to test this package thoroughly, you have to do these first:\n\n1.  Clone this project with git.\n2.  Excute this command in the project directory: `npm install`\n\nThe scripts `lib/parser.js` and `dist/toml-browser.js` are generated via this\ncommand:\n\n```bash\nnpm run build\n```\n\nThen you can test them via this command:\n\n```bash\nnpm test\n```\n\nYou can also do some benchmarks with other TOML parsers:\n\n```bash\nnpm run benchmark\n```\n\n\n### Others\n\nThis package is also used by other projects:\n\n*   [tomlify-j0.4](https://github.com/jakwings/tomlify-j0.4)\n*   [meta-matter](https://github.com/jakwings/meta-matter)\n","publish_time":1430518054539,"_cnpm_publish_time":1430518054539,"dist-tags":{"latest":"1.1.1"}}