1 {"_id":"jsonminify","_rev":"19-dc2cd65b08d7ae598a00b0902d7b8a78","name":"jsonminify","description":"JSON.minify() minifies blocks of JSON-like content into valid JSON by removing all whitespace *and* comments.","dist-tags":{"latest":"0.2.3"},"versions":{"0.1.0":{"name":"jsonminify","version":"0.1.0","description":"JSON.minify() minifies blocks of JSON-like content into valid JSON by removing all whitespace *and* comments.","keywords":["node","json","JSON-like","comment"],"homepage":"https://github.com/fkei/JSON.minify","bugs":{"email":"kei.topaz@gmail.com","url":"https://github.com/fkei/JSON.minify/issues"},"author":{"name":"Kei Funagayama","email":"kei.topaz@gmail.com","url":"https://github.com/fkei"},"repository":{"type":"git","url":"https://github.com/fkei/JSON.minify.git"},"devDependencies":{"mocha":"*","jshint":"*","should":"*"},"engines":{"node":">=0.8.0","npm":">=1.1.0"},"os":["darwin","linux"],"main":"./minify.json.js","_id":"jsonminify@0.1.0","dist":{"shasum":"94a349d1726d5cad09d2bfcd8839fc6a35ce479b","tarball":"http://registry.npmjs.org/jsonminify/-/jsonminify-0.1.0.tgz"},"_from":"./","_npmVersion":"1.2.14","_npmUser":{"name":"fkei","email":"kei.topaz@gmail.com"},"maintainers":[{"name":"fkei","email":"kei.topaz@gmail.com"}],"directories":{}},"0.1.1":{"name":"jsonminify","version":"0.1.1","description":"JSON.minify() minifies blocks of JSON-like content into valid JSON by removing all whitespace *and* comments.","keywords":["node","json","JSON-like","comment"],"homepage":"https://github.com/fkei/JSON.minify","bugs":{"email":"kei.topaz@gmail.com","url":"https://github.com/fkei/JSON.minify/issues"},"author":{"name":"Kei Funagayama","email":"kei.topaz@gmail.com","url":"https://github.com/fkei"},"repository":{"type":"git","url":"https://github.com/fkei/JSON.minify.git"},"devDependencies":{"mocha":"*","jshint":"*","should":"*"},"engines":{"node":">=0.8.0","npm":">=1.1.0"},"os":["darwin","linux","win32"],"main":"./minify.json.js","_id":"jsonminify@0.1.1","dist":{"shasum":"f765276c6dad32eb062a3e76d7c97f636beca3e2","tarball":"http://registry.npmjs.org/jsonminify/-/jsonminify-0.1.1.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"fkei","email":"kei.topaz@gmail.com"},"maintainers":[{"name":"fkei","email":"kei.topaz@gmail.com"}],"directories":{}},"0.1.2":{"name":"jsonminify","version":"0.1.2","description":"JSON.minify() minifies blocks of JSON-like content into valid JSON by removing all whitespace *and* comments.","keywords":["node","json","JSON-like","comment"],"homepage":"https://github.com/fkei/JSON.minify","bugs":{"email":"kei.topaz@gmail.com","url":"https://github.com/fkei/JSON.minify/issues"},"author":{"name":"Kei Funagayama","email":"kei.topaz@gmail.com","url":"https://github.com/fkei"},"repository":{"type":"git","url":"https://github.com/fkei/JSON.minify.git"},"devDependencies":{"mocha":"*","jshint":"*","should":"*"},"engines":{"node":">=0.8.0","npm":">=1.1.0"},"os":["darwin","linux","win32","sunos"],"main":"./minify.json.js","_id":"jsonminify@0.1.2","dist":{"shasum":"1ca3c9bafba9ab2ff6f630d8859f2f170b2f5982","tarball":"http://registry.npmjs.org/jsonminify/-/jsonminify-0.1.2.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"fkei","email":"kei.topaz@gmail.com"},"maintainers":[{"name":"fkei","email":"kei.topaz@gmail.com"}],"directories":{}},"0.2.1":{"name":"jsonminify","version":"0.2.1","description":"JSON.minify() minifies blocks of JSON-like content into valid JSON by removing all whitespace *and* comments.","keywords":["node","json","JSON-like","comment"],"homepage":"https://github.com/fkei/JSON.minify","bugs":{"url":"https://github.com/fkei/JSON.minify/issues","email":"kei.topaz@gmail.com"},"author":{"name":"Kei Funagayama","email":"kei.topaz@gmail.com","url":"https://github.com/fkei"},"repository":{"type":"git","url":"https://github.com/fkei/JSON.minify.git"},"devDependencies":{"mocha":"*","jshint":"*","should":"*"},"engines":{"node":">=0.8.0","npm":">=1.1.0"},"main":"./minify.json.js","_id":"jsonminify@0.2.1","dist":{"shasum":"70fb4c19fd3e7fbd3341fb86852cc93b65062aaf","tarball":"http://registry.npmjs.org/jsonminify/-/jsonminify-0.2.1.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"fkei","email":"kei.topaz@gmail.com"},"maintainers":[{"name":"fkei","email":"kei.topaz@gmail.com"}],"directories":{}},"0.2.2":{"name":"jsonminify","version":"0.2.2","description":"JSON.minify() minifies blocks of JSON-like content into valid JSON by removing all whitespace *and* comments.","keywords":["node","json","JSON-like","comment"],"homepage":"https://github.com/fkei/JSON.minify","bugs":{"url":"https://github.com/fkei/JSON.minify/issues","email":"kei.topaz@gmail.com"},"author":{"name":"Kei Funagayama","email":"kei.topaz@gmail.com","url":"https://github.com/fkei"},"repository":{"type":"git","url":"https://github.com/fkei/JSON.minify.git"},"devDependencies":{"mocha":"*","jshint":"*","should":"*","jsdoc":"git://github.com/jsdoc3/jsdoc.git","plato":"*"},"engines":{"node":">=0.8.0","npm":">=1.1.0"},"main":"./minify.json.js","_id":"jsonminify@0.2.2","dist":{"shasum":"5be02f45b9c44af9b9fbf6672ed6d5bd7f885948","tarball":"http://registry.npmjs.org/jsonminify/-/jsonminify-0.2.2.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"fkei","email":"kei.topaz@gmail.com"},"maintainers":[{"name":"fkei","email":"kei.topaz@gmail.com"}],"directories":{}},"0.2.3":{"name":"jsonminify","version":"0.2.3","description":"JSON.minify() minifies blocks of JSON-like content into valid JSON by removing all whitespace *and* comments.","keywords":["node","json","JSON-like","comment"],"scripts":{"test":"mocha -r should test/test-*.js"},"homepage":"https://github.com/fkei/JSON.minify","bugs":{"url":"https://github.com/fkei/JSON.minify/issues","email":"kei.topaz@gmail.com"},"author":{"name":"Kei Funagayama","email":"kei.topaz@gmail.com","url":"https://github.com/fkei"},"repository":{"type":"git","url":"https://github.com/fkei/JSON.minify.git"},"devDependencies":{"mocha":"*","jshint":"*","should":"*","jsdoc":"git://github.com/jsdoc3/jsdoc.git","plato":"*"},"engines":{"node":">=0.8.0","npm":">=1.1.0"},"main":"./minify.json.js","_id":"jsonminify@0.2.3","dist":{"shasum":"4b842c8a3fe5d6aa48b2f8f95a1cf9a80c019d8e","tarball":"http://registry.npmjs.org/jsonminify/-/jsonminify-0.2.3.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"fkei","email":"kei.topaz@gmail.com"},"maintainers":[{"name":"fkei","email":"kei.topaz@gmail.com"}],"directories":{}}},"readme":"# About\n\n![Travis CI](https://travis-ci.org/fkei/JSON.minify.png?branch=master)\n\n\n# Feature\n\n/*! JSON.minify()\n\tv0.1 (c) Kyle Simpson\n\tMIT License\n*/\n\nJSON.minify() minifies blocks of JSON-like content into valid JSON by removing all \nwhitespace *and* comments.\n\nJSON parsers (like JavaScript's JSON.parse() parser) generally don't consider JSON\nwith comments to be valid and parseable. So, the intended usage is to minify \ndevelopment-friendly JSON (with comments) to valid JSON before parsing, such as:\n\nJSON.parse(JSON.minify(str));\n\nNow you can maintain development-friendly JSON documents, but minify them before\nparsing or before transmitting them over-the-wire.\n\nThough comments are not officially part of the JSON standard, this post from\nDouglas Crockford back in late 2005 helps explain the motivation behind this project.\n\nhttp://tech.groups.yahoo.com/group/json/message/152\n\n\"A JSON encoder MUST NOT output comments. A JSON decoder MAY accept and ignore comments.\"\n\nBasically, comments are not in the JSON *generation* standard, but that doesn't mean\nthat a parser can't be taught to ignore them. Which is exactly what JSON.minify()\nis for.\n\nThe first implementation of JSON.minify() is in JavaScript, but the intent is to\nport the implementation to as many other environments as possible/practical.\n\nNOTE: As transmitting bloated (ie, with comments/whitespace) JSON would be wasteful\nand silly, this JSON.minify() is intended for use in server-side processing\nenvironments where you can strip comments/whitespace from JSON before parsing\na JSON document, or before transmitting such over-the-wire from server to browser.\n\n# install \n\n## npm repo\n\n```\n$ npm install jsonminify\n```\n\n## npm source\n\n```\n$ npm install https://github.com/fkei/JSON.minify.git\n```\n\n# example\n\n\n```javascript\nvar jsonminify = require(\"jsonminify\");\n\njsonminify('{\"key\":\"value\"/** comment **/}')\n>> '{\"key\":\"value\"}'\n\nJSON.minify('{\"key\":\"value\"/** comment **/}')\n>> '{\"key\":\"value\"}'\n```\n\n# command-line\n\nPlease use here. Use JSON.minify internally.\n\n**node-mjson** [https://github.com/fkei/node-mjson](https://github.com/fkei/node-mjson)\n\n\n# build\n\n```\n$ make\n```\n\n# release\n\n```\n$ make release\n```\n\n# test\n\n```\n$ make test\n```\n\n# jshint\n\n```\n$ make jshint\n```\n\n# Document\n\n- [JSDoc - API Document](http://fkei.github.io/JSON.minify/docs/index.html)\n- [Plato - Report](http://fkei.github.io/JSON.minify/report/index.html)\n- [Mocha - Test result (HTML)](http://fkei.github.io/JSON.minify/TestDoc.html)\n\n# Web-Site\n\n**[Github pages - JSON.minify Home Page](http://fkei.github.io/JSON.minify/)**\n\n# LICENSE\n\nforked from [getify/JSON.minify](https://github.com/getify/JSON.minify)\n\n```\nThe MIT License (MIT)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n","maintainers":[{"name":"fkei","email":"kei.topaz@gmail.com"}],"time":{"modified":"2014-08-30T14:34:09.896Z","created":"2013-03-28T07:55:59.350Z","0.1.0":"2013-03-28T07:56:02.542Z","0.1.1":"2013-05-04T10:38:01.251Z","0.1.2":"2013-09-05T09:59:02.773Z","0.2.1":"2013-09-24T01:41:12.097Z","0.2.2":"2013-09-30T06:24:57.453Z","0.2.3":"2014-02-08T12:31:10.786Z"},"author":{"name":"Kei Funagayama","email":"kei.topaz@gmail.com","url":"https://github.com/fkei"},"repository":{"type":"git","url":"https://github.com/fkei/JSON.minify.git"},"readmeFilename":"README.md","users":{"bluehazetech":true,"brentonhouse":true,"xtopher":true,"hkbarton":true,"denji":true},"homepage":"https://github.com/fkei/JSON.minify","keywords":["node","json","JSON-like","comment"],"bugs":{"url":"https://github.com/fkei/JSON.minify/issues","email":"kei.topaz@gmail.com"},"_attachments":{},"_etag":"\"A5HG0R3PF8ZCBIAVUZH85EYMI\""}