{"_id":"tomlify-j0.4","_rev":"2882423","name":"tomlify-j0.4","description":"A Object->TOML encoder/converter only for TOML v0.4.0","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"jakwings","email":"jakwings@gmail.com"}],"time":{"modified":"2022-10-06T07:31:12.000Z","created":"2015-04-20T14:29:10.492Z","3.0.0":"2017-11-01T23:30:39.201Z","3.0.0-alpha.0":"2017-10-04T23:33:20.168Z","2.2.1":"2017-09-14T04:15:40.741Z","2.2.0":"2017-07-22T21:53:34.352Z","2.1.1":"2017-07-22T06:59:18.615Z","2.1.0":"2017-07-22T06:23:01.693Z","2.0.0":"2017-04-17T04:54:07.122Z","1.0.4":"2017-04-16T04:52:20.575Z","1.0.3":"2017-04-15T07:06:20.323Z","1.0.2":"2017-04-14T16:23:48.271Z","1.0.1":"2015-04-21T15:51:33.517Z","1.0.0":"2015-04-20T14:29:10.492Z"},"users":{},"author":{"name":"Jak Wings","email":"jakwings@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/jakwings/tomlify-j0.4.git"},"versions":{"3.0.0":{"name":"tomlify-j0.4","version":"3.0.0","description":"A Object->TOML encoder/converter only for TOML v0.4.0","main":"tomlify.js","scripts":{"dist":"uglifyjs --verbose --compress --mangle -o dist/tomlify.min.js tomlify.js","prepare":"npm run dist","test":"mocha --bail --reporter min test/*.js"},"files":["LICENSE","README.md","CHANGELOG.md","dist/tomlify.min.js","tomlify.js"],"keywords":["toml","tomlify","stringify","encoder","ini","toml-j0.4"],"author":{"name":"Jak Wings","email":"jakwings@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/jakwings/tomlify-j0.4.git"},"bugs":{"url":"https://github.com/jakwings/tomlify-j0.4/issues"},"homepage":"https://github.com/jakwings/tomlify-j0.4","devDependencies":{"js-yaml":"~3.9.0","mocha":"~3.4.2","should":"~11.2.1","uglify-js":"~3.0.25","toml-j0.4":"~1.1.0"},"gitHead":"ab19c676c65ddd0791e31b1aa77a7f970658f3bd","_id":"tomlify-j0.4@3.0.0","_npmVersion":"5.5.1","_nodeVersion":"9.0.0","_npmUser":{"name":"jakwings","email":"jakwings@gmail.com"},"maintainers":[{"name":"jakwings","email":"jakwings@gmail.com"}],"dist":{"shasum":"99414d45268c3a3b8bf38be82145b7bba34b7473","size":9328,"noattachment":false,"key":"/tomlify-j0.4/-/tomlify-j0.4-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tomlify-j0.4/download/tomlify-j0.4-3.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tomlify-j0.4-3.0.0.tgz_1509579038108_0.3081868840381503"},"directories":{},"publish_time":1509579039201,"_hasShrinkwrap":false,"_cnpm_publish_time":1509579039201,"_cnpmcore_publish_time":"2021-12-16T16:46:11.984Z"},"3.0.0-alpha.0":{"name":"tomlify-j0.4","version":"3.0.0-alpha.0","description":"A Object->TOML encoder/converter only for TOML v0.4.0","main":"tomlify.js","scripts":{"dist":"uglifyjs --verbose --compress --mangle -o dist/tomlify.min.js tomlify.js","prepare":"npm run dist","test":"mocha --bail --reporter min test/*.js"},"files":["LICENSE","README.md","CHANGELOG.md","dist/tomlify.min.js","tomlify.js"],"keywords":["toml","tomlify","stringify","encoder","ini","toml-j0.4"],"author":{"name":"Jak Wings","email":"jakwings@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/jakwings/tomlify-j0.4.git"},"bugs":{"url":"https://github.com/jakwings/tomlify-j0.4/issues"},"homepage":"https://github.com/jakwings/tomlify-j0.4","devDependencies":{"js-yaml":"~3.9.0","mocha":"~3.4.2","should":"~11.2.1","uglify-js":"~3.0.25","toml-j0.4":"~1.1.0"},"gitHead":"d4239434bc1670ec6414fed9db4cff746b26327b","_id":"tomlify-j0.4@3.0.0-alpha.0","_npmVersion":"5.4.2","_nodeVersion":"8.5.0","_npmUser":{"name":"jakwings","email":"jakwings@gmail.com"},"maintainers":[{"name":"jakwings","email":"jakwings@gmail.com"}],"dist":{"shasum":"f5ed30adfde71e60084dea80aa39c1be2046a7fc","size":9336,"noattachment":false,"key":"/tomlify-j0.4/-/tomlify-j0.4-3.0.0-alpha.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tomlify-j0.4/download/tomlify-j0.4-3.0.0-alpha.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tomlify-j0.4-3.0.0-alpha.0.tgz_1507159999081_0.2504437235184014"},"directories":{},"publish_time":1507160000168,"_hasShrinkwrap":false,"_cnpm_publish_time":1507160000168,"_cnpmcore_publish_time":"2021-12-16T16:46:12.180Z"},"2.2.1":{"name":"tomlify-j0.4","version":"2.2.1","description":"A Object->TOML encoder/converter only for TOML v0.4.0","main":"tomlify.js","types":"tomlify.d.ts","scripts":{"dist":"uglifyjs --verbose --compress --mangle -o dist/tomlify.min.js tomlify.js","prepare":"npm run dist","test":"mocha --bail --reporter min test/*.js"},"files":["LICENSE","README.md","CHANGELOG.md","dist/tomlify.min.js","tomlify.d.ts","tomlify.js"],"keywords":["toml","tomlify","stringify","encoder","ini","toml-j0.4"],"author":{"name":"Jak Wings","email":"jakwings@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/jakwings/tomlify-j0.4.git"},"bugs":{"url":"https://github.com/jakwings/tomlify-j0.4/issues"},"homepage":"https://github.com/jakwings/tomlify-j0.4","devDependencies":{"js-yaml":"~3.9.0","mocha":"~3.4.2","should":"~11.2.1","uglify-js":"~3.0.25","toml-j0.4":"~1.1.0"},"gitHead":"a5558783fe8c7f01eddc6ffc9230c746b0372bf8","_id":"tomlify-j0.4@2.2.1","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"jakwings","email":"jakwings@gmail.com"},"maintainers":[{"name":"jakwings","email":"jakwings@gmail.com"}],"dist":{"shasum":"60c4e7dd2066b2e917dd9a0de5fd676c0a6d7c7b","size":9815,"noattachment":false,"key":"/tomlify-j0.4/-/tomlify-j0.4-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tomlify-j0.4/download/tomlify-j0.4-2.2.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tomlify-j0.4-2.2.1.tgz_1505362539699_0.9352173928637058"},"directories":{},"publish_time":1505362540741,"_hasShrinkwrap":false,"_cnpm_publish_time":1505362540741,"_cnpmcore_publish_time":"2021-12-16T16:46:12.397Z"},"2.2.0":{"name":"tomlify-j0.4","version":"2.2.0","description":"A Object->TOML encoder/converter only for TOML v0.4.0","main":"tomlify.js","types":"tomlify.d.ts","scripts":{"test":"mocha --bail --reporter min test/*.js"},"keywords":["toml","tomlify","stringify","encoder","ini","toml-j0.4"],"author":{"name":"Jak Wings","email":"jakwings@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/jakwings/tomlify-j0.4.git"},"bugs":{"url":"https://github.com/jakwings/tomlify-j0.4/issues"},"homepage":"https://github.com/jakwings/tomlify-j0.4","devDependencies":{"js-yaml":"~3.9.0","mocha":"~3.4.2","should":"~11.2.1","toml-j0.4":"~1.1.0"},"gitHead":"7e741b81f4e7f0674f30409c1afc15cc5dc44d3f","_id":"tomlify-j0.4@2.2.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"jakwings","email":"jakwings@gmail.com"},"maintainers":[{"name":"jakwings","email":"jakwings@gmail.com"}],"dist":{"shasum":"d9a5a115b46cf4d3074d3c883901064295e091e5","size":9673,"noattachment":false,"key":"/tomlify-j0.4/-/tomlify-j0.4-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tomlify-j0.4/download/tomlify-j0.4-2.2.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tomlify-j0.4-2.2.0.tgz_1500760413367_0.044704239116981626"},"directories":{},"publish_time":1500760414352,"_hasShrinkwrap":false,"_cnpm_publish_time":1500760414352,"_cnpmcore_publish_time":"2021-12-16T16:46:12.640Z"},"2.1.1":{"name":"tomlify-j0.4","version":"2.1.1","description":"A Object->TOML encoder/converter only for TOML v0.4.0","main":"tomlify.js","scripts":{"test":"mocha --bail --reporter min test/*.js"},"keywords":["toml","tomlify","stringify","encoder","ini","toml-j0.4"],"author":{"name":"Jak Wings","email":"jakwings@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/jakwings/tomlify-j0.4.git"},"bugs":{"url":"https://github.com/jakwings/tomlify-j0.4/issues"},"homepage":"https://github.com/jakwings/tomlify-j0.4","devDependencies":{"js-yaml":"~3.2.7","mocha":"~2.2.4","should":"~6.0.1","toml-j0.4":"^1.0.9"},"gitHead":"86e9aac9819d6a7502120d39f2cf9cc5c4cfc334","_id":"tomlify-j0.4@2.1.1","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"jakwings","email":"jakwings@gmail.com"},"maintainers":[{"name":"jakwings","email":"jakwings@gmail.com"}],"dist":{"shasum":"7a4c211fa737b460ed3a45c4e67f3f10ca306d8a","size":9002,"noattachment":false,"key":"/tomlify-j0.4/-/tomlify-j0.4-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tomlify-j0.4/download/tomlify-j0.4-2.1.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tomlify-j0.4-2.1.1.tgz_1500706754960_0.5929542782250792"},"directories":{},"publish_time":1500706758615,"_hasShrinkwrap":false,"_cnpm_publish_time":1500706758615,"_cnpmcore_publish_time":"2021-12-16T16:46:12.928Z"},"2.1.0":{"name":"tomlify-j0.4","version":"2.1.0","description":"A Object->TOML encoder/converter only for TOML v0.4.0","main":"tomlify.js","scripts":{"test":"mocha --bail --reporter min test/*.js"},"keywords":["toml","tomlify","stringify","encoder","ini","toml-j0.4"],"author":{"name":"Jak Wings","email":"jakwings@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/jakwings/tomlify-j0.4.git"},"bugs":{"url":"https://github.com/jakwings/tomlify-j0.4/issues"},"homepage":"https://github.com/jakwings/tomlify-j0.4","devDependencies":{"js-yaml":"~3.2.7","mocha":"~2.2.4","should":"~6.0.1","toml-j0.4":"^1.0.9"},"gitHead":"ee77d9a1fd1d0578ac9270ba8ace3dc3bb4d6a20","_id":"tomlify-j0.4@2.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"jakwings","email":"jakwings@gmail.com"},"maintainers":[{"name":"jakwings","email":"jakwings@gmail.com"}],"dist":{"shasum":"839257df86747a33baed12086c7631f21be73e68","size":8932,"noattachment":false,"key":"/tomlify-j0.4/-/tomlify-j0.4-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tomlify-j0.4/download/tomlify-j0.4-2.1.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tomlify-j0.4-2.1.0.tgz_1500704580727_0.39571006991900504"},"directories":{},"publish_time":1500704581693,"_hasShrinkwrap":false,"_cnpm_publish_time":1500704581693,"_cnpmcore_publish_time":"2021-12-16T16:46:13.189Z"},"2.0.0":{"name":"tomlify-j0.4","version":"2.0.0","description":"A Object->TOML encoder/converter only for TOML v0.4.0","main":"tomlify.js","scripts":{"test":"mocha --bail --reporter min test/*.js"},"keywords":["toml","tomlify","stringify","encoder","ini","toml-j0.4"],"author":{"name":"Jak Wings","email":"jakwings@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/jakwings/tomlify-j0.4.git"},"bugs":{"url":"https://github.com/jakwings/tomlify-j0.4/issues"},"homepage":"https://github.com/jakwings/tomlify-j0.4","devDependencies":{"js-yaml":"~3.2.7","mocha":"~2.2.4","should":"~6.0.1","toml-j0.4":"^1.0.9"},"_id":"tomlify-j0.4@2.0.0","_shasum":"0a2fef1fbca30fedaa6bcfc421a911a8311fd932","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"jakwings","email":"jakwings@gmail.com"},"maintainers":[{"name":"jakwings","email":"jakwings@gmail.com"}],"dist":{"shasum":"0a2fef1fbca30fedaa6bcfc421a911a8311fd932","size":8834,"noattachment":false,"key":"/tomlify-j0.4/-/tomlify-j0.4-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tomlify-j0.4/download/tomlify-j0.4-2.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tomlify-j0.4-2.0.0.tgz_1492404845199_0.7161070469301194"},"directories":{},"publish_time":1492404847122,"_hasShrinkwrap":false,"_cnpm_publish_time":1492404847122,"_cnpmcore_publish_time":"2021-12-16T16:46:13.400Z"},"1.0.4":{"name":"tomlify-j0.4","version":"1.0.4","description":"A Object->TOML encoder/converter only for TOML v0.4.0","main":"tomlify.js","scripts":{"test":"mocha --bail --reporter min test/*.js"},"keywords":["toml","tomlify","stringify","encoder","ini","toml-j0.4"],"author":{"name":"Jak Wings","email":"jakwings@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/jakwings/tomlify-j0.4.git"},"bugs":{"url":"https://github.com/jakwings/tomlify-j0.4/issues"},"homepage":"https://github.com/jakwings/tomlify-j0.4","devDependencies":{"js-yaml":"~3.2.7","mocha":"~2.2.4","should":"~6.0.1","toml-j0.4":"^1.0.9"},"gitHead":"2c7101e4ec2f713c9daa57c2107cdedceabf1a58","_id":"tomlify-j0.4@1.0.4","_shasum":"ee01710c101791da70fc808d5e9219649a760945","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"jakwings","email":"jakwings@gmail.com"},"maintainers":[{"name":"jakwings","email":"jakwings@gmail.com"}],"dist":{"shasum":"ee01710c101791da70fc808d5e9219649a760945","size":8539,"noattachment":false,"key":"/tomlify-j0.4/-/tomlify-j0.4-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/tomlify-j0.4/download/tomlify-j0.4-1.0.4.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/tomlify-j0.4-1.0.4.tgz_1492318338780_0.22138220258057117"},"directories":{},"publish_time":1492318340575,"_hasShrinkwrap":false,"_cnpm_publish_time":1492318340575,"_cnpmcore_publish_time":"2021-12-16T16:46:13.750Z"},"1.0.3":{"name":"tomlify-j0.4","version":"1.0.3","description":"A Object->TOML encoder/converter only for TOML v0.4.0","main":"tomlify.js","scripts":{"test":"mocha --bail --reporter min test/*.js"},"keywords":["toml","tomlify","stringify","encoder","ini","toml-j0.4"],"author":{"name":"Jak Wings","email":"jakwings@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/jakwings/tomlify-j0.4.git"},"bugs":{"url":"https://github.com/jakwings/tomlify-j0.4/issues"},"homepage":"https://github.com/jakwings/tomlify-j0.4","devDependencies":{"js-yaml":"~3.2.7","mocha":"~2.2.4","should":"~6.0.1","toml-j0.4":"^1.0.9"},"gitHead":"6373f31f4ea2261317a839a490f000a193cc69fe","_id":"tomlify-j0.4@1.0.3","_shasum":"bbae8860d6c46940321b6b71dd6f5a091ad2c3c0","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"jakwings","email":"jakwings@gmail.com"},"maintainers":[{"name":"jakwings","email":"jakwings@gmail.com"}],"dist":{"shasum":"bbae8860d6c46940321b6b71dd6f5a091ad2c3c0","size":8573,"noattachment":false,"key":"/tomlify-j0.4/-/tomlify-j0.4-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/tomlify-j0.4/download/tomlify-j0.4-1.0.3.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tomlify-j0.4-1.0.3.tgz_1492239980096_0.5768994728568941"},"directories":{},"publish_time":1492239980323,"_hasShrinkwrap":false,"_cnpm_publish_time":1492239980323,"_cnpmcore_publish_time":"2021-12-16T16:46:14.000Z"},"1.0.2":{"name":"tomlify-j0.4","version":"1.0.2","description":"A Object->TOML encoder/converter only for TOML v0.4.0","main":"tomlify.js","scripts":{"test":"mocha --bail --reporter min test/*.js"},"keywords":["toml","tomlify","stringify","encoder","ini","toml-j0.4"],"author":{"name":"Jak Wings","email":"jakwings@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/jakwings/tomlify-j0.4.git"},"bugs":{"url":"https://github.com/jakwings/tomlify-j0.4/issues"},"homepage":"https://github.com/jakwings/tomlify-j0.4","devDependencies":{"js-yaml":"~3.2.7","mocha":"~2.2.4","should":"~6.0.1","toml-j0.4":"^1.0.9"},"gitHead":"70866a32e7189673447cef67366c43f5719994d3","_id":"tomlify-j0.4@1.0.2","_shasum":"b232bcb9b4508c2ff52002d78e498ff4ba9e35e7","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"jakwings","email":"jakwings@gmail.com"},"maintainers":[{"name":"jakwings","email":"jakwings@gmail.com"}],"dist":{"shasum":"b232bcb9b4508c2ff52002d78e498ff4ba9e35e7","size":8587,"noattachment":false,"key":"/tomlify-j0.4/-/tomlify-j0.4-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tomlify-j0.4/download/tomlify-j0.4-1.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tomlify-j0.4-1.0.2.tgz_1492187027997_0.39654154516756535"},"directories":{},"publish_time":1492187028271,"_hasShrinkwrap":false,"_cnpm_publish_time":1492187028271,"_cnpmcore_publish_time":"2021-12-16T16:46:14.370Z"},"1.0.1":{"name":"tomlify-j0.4","version":"1.0.1","description":"A Object->TOML encoder/converter for TOML v0.4.0","main":"tomlify.js","scripts":{"test":"node node_modules/mocha/bin/mocha --bail --reporter min --inline-diffs test/*.js"},"keywords":["toml","tomlify","stringify","encoder","ini","toml-j0.4"],"author":{"name":"Jak Wings","email":"jakwings@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/jakwings/tomlify-j0.4.git"},"licenses":[{"type":"MIT","url":"https://github.com/jakwings/tomlify-j0.4/blob/master/LICENSE"}],"bugs":{"url":"https://github.com/jakwings/tomlify-j0.4/issues"},"homepage":"https://github.com/jakwings/tomlify-j0.4","devDependencies":{"js-yaml":"~3.2.7","mocha":"~2.2.4","should":"~6.0.1","toml-j0.4":"^1.0.9"},"gitHead":"61cabbf0e0dc61937b032f4b55d70d4a8f239dbb","_id":"tomlify-j0.4@1.0.1","_shasum":"0b1a605afcc71ebad2cdc91c45de36e00fd5b073","_from":".","_npmVersion":"2.8.3","_nodeVersion":"1.7.1","_npmUser":{"name":"jakwings","email":"jakwings@gmail.com"},"maintainers":[{"name":"jakwings","email":"jakwings@gmail.com"}],"dist":{"shasum":"0b1a605afcc71ebad2cdc91c45de36e00fd5b073","size":8615,"noattachment":false,"key":"/tomlify-j0.4/-/tomlify-j0.4-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tomlify-j0.4/download/tomlify-j0.4-1.0.1.tgz"},"directories":{},"publish_time":1429631493517,"_hasShrinkwrap":false,"_cnpm_publish_time":1429631493517,"_cnpmcore_publish_time":"2021-12-16T16:46:14.637Z"},"1.0.0":{"name":"tomlify-j0.4","version":"1.0.0","description":"A Object->TOML encoder/converter for TOML v0.4.0","main":"tomlify.js","scripts":{"test":"node node_modules/mocha/bin/mocha --bail --reporter min --inline-diffs test/*.js"},"keywords":["toml","tomlify","stringify","encoder","ini","toml-j0.4"],"author":{"name":"Jak Wings","email":"jakwings@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/jakwings/tomlify-j0.4.git"},"licenses":[{"type":"MIT","url":"https://github.com/jakwings/tomlify-j0.4/blob/master/LICENSE"}],"bugs":{"url":"https://github.com/jakwings/tomlify-j0.4/issues"},"homepage":"https://github.com/jakwings/tomlify-j0.4","devDependencies":{"js-yaml":"~3.2.7","mocha":"~2.2.4","should":"~6.0.1","toml-j0.4":"^1.0.9"},"gitHead":"941d4bc6101e14c81e70124c6990cb792ae45caa","_id":"tomlify-j0.4@1.0.0","_shasum":"238887594d5a2f0b3e954642c735208fa8411eea","_from":".","_npmVersion":"2.8.3","_nodeVersion":"1.7.1","_npmUser":{"name":"jakwings","email":"jakwings@gmail.com"},"maintainers":[{"name":"jakwings","email":"jakwings@gmail.com"}],"dist":{"shasum":"238887594d5a2f0b3e954642c735208fa8411eea","size":8472,"noattachment":false,"key":"/tomlify-j0.4/-/tomlify-j0.4-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tomlify-j0.4/download/tomlify-j0.4-1.0.0.tgz"},"directories":{},"publish_time":1429540150492,"_hasShrinkwrap":false,"_cnpm_publish_time":1429540150492,"_cnpmcore_publish_time":"2021-12-16T16:46:14.854Z"}},"readme":"# TOMLify-j0.4\n\n[![Build Status](https://travis-ci.org/jakwings/tomlify-j0.4.svg)](https://travis-ci.org/jakwings/tomlify-j0.4)\n[![NPM version](https://badge.fury.io/js/tomlify-j0.4.svg)](http://badge.fury.io/js/tomlify-j0.4)\n\nAs its name *TOMLify-j0.4* says, this is a [TOML] v[0.4.0] compliant encoder.\n(JavaScript Object -> TOML text)\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\n\n### Live Demo\n\n<https://jakwings.github.io/tomlify-j0.4/demo/>\n\nYou can see the result from tomlify-j0.4 in the debug console of your browser.\n\nThe parser used in the demo is [toml-j0.4]\n\n[toml-j0.4]: https://github.com/jakwings/toml-j0.4\n\n\n### Usage\n\nYou can install it via `npm install tomlify-j0.4`, or just include the script\n`tomlify.js` or `dist/tomlify.min.js` in your web pages.\n\n```javascript\nvar tomlify = require('tomlify-j0.4');\n\nvar table = {\n    about: {\n        name: 'tomlify-j0.4',\n        maintainers: ['Jak Wings'],\n        todos: [\n            {\n                done: false,\n                priority: 'important',\n                text: 'Add some test scripts.'\n            },\n            {\n                done: true,\n                priority: 'normal',\n                text: 'Open source this project.'\n            }\n        ]\n    },\n    more: {\n        version: [2, 0, 0],\n        date: new Date('2017-04-14T00:08:00+08:00')\n    }\n};\n\ntry {\n    var text = tomlify.toToml(table, {space: 2});  // indent with 2 spaces\n    /* OUTPUT:\n     * [about]\n     * name = \"tomlify-j0.4\"\n     * maintainers = [\n     *   \"Jak Wings\"\n     * ]\n     *\n     *   [[about.todos]]\n     *   done = false\n     *   priority = \"important\"\n     *   text = \"Add some test scripts.\"\n     *\n     *   [[about.todos]]\n     *   done = true\n     *   priority = \"normal\"\n     *   text = \"Open source this project.\"\n     *\n     * [more]\n     * version = [\n     *   2.0,\n     *   0.0,\n     *   0.0\n     * ]\n     * date = 2017-04-13T16:08:00.000Z\n     */\n    var text = tomlify.toToml(table, {\n        space: '  ',\n        replace: function (key, value) {\n            var context = this;\n            var path = tomlify.toKey(context.path);\n            if (/^more\\.version\\.\\[\\d+\\]$/.test(path)) {\n                return value.toFixed(0);  // Change the text transformed from the value.\n            }\n            if (context.path[0] === 'about' &&\n                context.path[1] === 'todos' &&\n                context.path[2] === 1) {\n                return null;  // Drop one table from the todo array.\n            }\n            return false;  // Let tomlify decide for you.\n        }\n    });\n    /* OUTPUT:\n     * [about]\n     * name = \"tomlify-j0.4\"\n     * maintainers = [\n     *   \"Jak Wings\"\n     * ]\n     *\n     *   [[about.todos]]\n     *   done = false\n     *   priority = \"important\"\n     *   text = \"Add some test scripts.\"\n     *\n     * [more]\n     * version = [\n     *   2,\n     *   0,\n     *   0\n     * ]\n     * date = 2017-04-13T16:08:00.000Z\n     */\n    var text = tomlify.toToml({\n        null: null,\n        undefined: undefined,\n        numbers: [1, 2, null, , 3, 4]\n    });\n    /* OUTPUT:\n     * numbers = [1.0, 2.0, 3.0, 4.0]\n     */\n} catch (err) {\n    // do something\n}\n```\n\n\n### APIs\n\n#### tomlify.toToml(table, options)\n\nUse it to transform a table object into TOML text.\n\n*   `table`: must be an object other than an instance of Array or Date.\n\n    By default, all numbers are transformed into floats and arrays of numbers\n    will become arrays of floats. And `null` or `undefined` in an array or\n    object property whose value is `null` or `undefined` will be ignored. You\n    can change this behavior through `options.replace`.\n\n*   options.replace - `{function(this: Context, key: String|Number, value:Mixed): Mixed}`:\n\n    The function used to change the default text output.\n\n    *   `@this {Context}`:\n        *   `@property {Array.<String|Number>}` path: The key path to current value.\n        *   `@property {Table|Array}` table: The direct parent object.\n    *   `@param {String|Number}` key: The key of the value in current parent object.\n    *   `@param {Mixed}` value: The current value.\n    *   `@return {Mixed}` A string to change the value output, `false` to\n        cancel, `null` or `undefined` to remove the output.\n\n*   options.space - `{String|Number}`:\n\n    Specify the padding string for indentation.\n\n    If it is a non-negative integer N, then use N space \" \" for indentation. If\n    it is a string, then use this string for indentation. Otherwise, no\n    indentation will be performed.\n\n*   options.sort - `{function(a: String, b: String): Number}`:\n\n    The compare function for sorting table keys.\n\n    It is used for `Array.prototype.sort()`.\n\n#### tomlify.toValue(value, options)\n\nJust like `tomlify.toToml(table, options)`, it is used to transform a value into TOML\nvalue for a key-value pair. `value` cannot be null or undefined.\n\nHowever, an inline-table always fits into one line, no matter what it contains.\n\nE.g.\n\n```javascript\ntomlify.toValue({one: 1, two: 2});\n//=> {one = 1.0, two = 2.0}\n\ntomlify.toValue([\"apple\", \"banana\"], {space: 2});\n//=>\n//[\n//  \"apple\",\n//  \"banana\"\n//]\n\ntomlify.toValue([\n  {people: [\"Alice\", \"Bob\"]},\n  {fruits: [\"apple\", \"banana\"]}\n], {space: 2});\n//=>\n//[\n//  {people = [\"Alice\", \"Bob\"]},\n//  {fruits = [\"apple\", \"banana\"]}\n//]\n```\n\n#### tomlify.toKey(path, alternative)\n\n*   path - `{String|Array.<String|Number>}`: A key or a key path.\n*   alternative - `{Boolean}`: Whether numbers in the key path will be ignored.\n\nUse it to get a TOML key or key path for the key-value pair. E.g.\n\n```javascript\ntomlify.toKey('money');  //=> money\ntomlify.toKey('$');      //=> \"$\"\n\ntomlify.toKey(['sir', 'Mr. Smith']);        //=> sir.\"Mr. Smith\"\ntomlify.toKey(['food', 0, 'price']);        //=> food.[0].price\ntomlify.toKey(['food', 0, 'price'], true);  //=> food.price\n```\n\n\n### Known Problems\n\n*   JavaScript does not have any integer type.\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 a pure integer! You should store big integers in\n    strings.\n\n    All numbers are transformed into floats by default. You can change this\n    behavior by using a replacer function with tomlify-j0.4.\n","_attachments":{},"homepage":"https://github.com/jakwings/tomlify-j0.4","bugs":{"url":"https://github.com/jakwings/tomlify-j0.4/issues"},"license":"MIT"}