{"_id":"node-beautify","_rev":"16-aea91be1c762ec586e53c32e13cf95c0","name":"node-beautify","description":"'beautifys' (formats) assets such as javascript files to be easily read","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.1":{"name":"node-beautify","version":"0.0.1","description":"'beautifys' (formats) assets such as javascript files to be easily read","main":"node-beautify","homepage":"https://github.com/fshost","author":{"name":"Nathan Cartwright","email":"fshost@yahoo.com","url":"https://github.com/fshost"},"directories":{"lib":"lib"},"engines":{"node":">= 0.5.0"},"licenses":["MIT"],"_npmUser":{"name":"mashdraggin","email":"fshost@yahoo.com"},"_id":"node-beautify@0.0.1","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.1","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"15a9210c913b959fd6fab573787cfee146985add","tarball":"https://registry.npmjs.org/node-beautify/-/node-beautify-0.0.1.tgz","integrity":"sha512-eAMSzYRJsfjb/QpmQDSF2PZA2NiwZ2j+VoK5OEbWtjCp1KQGCFCQP44TpecnCiTtsVAs8qzHa3x4yqsgWlPGVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF9C3Cz2ab2YC0CPIWIRgA/GqaKWp7pdQbzjA/qJFUPYAiASO231PP1nrG5YEsEHNqvgnMuCOgplKxt+dyHBRKFQbA=="}]},"maintainers":[{"name":"mashdraggin","email":"fshost@yahoo.com"}],"deprecated":"please use js-beautify instead"},"0.0.2":{"name":"node-beautify","version":"0.0.2","description":"'beautifys' (formats) assets such as javascript files to be easily read","main":"node-beautify","homepage":"https://github.com/fshost","author":{"name":"Nathan Cartwright","email":"fshost@yahoo.com","url":"https://github.com/fshost"},"directories":{"lib":"lib"},"scripts":{"test":"node ./test/beautify-test.js"},"engines":{"node":">= 0.5.0"},"licenses":["MIT"],"_npmUser":{"name":"mashdraggin","email":"fshost@yahoo.com"},"_id":"node-beautify@0.0.2","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.1","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"e1321cb128f7c1dccee6e39e65b94a2ef5d1fa87","tarball":"https://registry.npmjs.org/node-beautify/-/node-beautify-0.0.2.tgz","integrity":"sha512-AzmEYXsoQZ3BovtqReadNI70ahbwWiatiJgxQR5R2+xrvsBMTUQtdZVJ8c9gC7lj0lVOY5BJLg4UOwZtIDyxwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAvhB3PeK7vhkRXJJ1b5h1/IL/etgY1WAmxfTJrNXswSAiEAytZZ7pqEpYZsnL4790jYe1U3XREkjMUNG/R+uXIpqeo="}]},"maintainers":[{"name":"mashdraggin","email":"fshost@yahoo.com"}],"deprecated":"please use js-beautify instead"},"0.0.5":{"name":"node-beautify","version":"0.0.5","description":"'beautifys' (formats) assets such as javascript files to be easily read","main":"node-beautify","homepage":"https://github.com/fshost","author":{"name":"Nathan Cartwright","email":"fshost@yahoo.com","url":"https://github.com/fshost"},"contributors":[{"name":"Larry Battle","url":"http://github.com/LarryBattle"}],"directories":{"lib":"lib"},"scripts":{"test":"mocha"},"engines":{"node":">= 0.5.0"},"licenses":["MIT"],"devDependencies":{"mocha":"latest","should":"^3.1.3"},"gitHead":"769ff004053d3c2279627ca34db1fffd2e38da40","_id":"node-beautify@0.0.5","_shasum":"b76a5ccf856c4608b081dd78df308b855088ae37","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"mashdraggin","email":"fshost@yahoo.com"},"dist":{"shasum":"b76a5ccf856c4608b081dd78df308b855088ae37","tarball":"https://registry.npmjs.org/node-beautify/-/node-beautify-0.0.5.tgz","integrity":"sha512-RfxxSp9DtnxiLg8v816b1gPwo+0Pd5bTRpTT1sBdNHt7RIKI0gbmPpKH9NPvRSL8W+tC6TtRwm5fCNqF8BcF2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCIDbGz+HhPkCFl9BMu5T7i2piQJb9zvDi87tTwOGSn7FFAh89Php3B1vw+MSklck8MCXxfGQWGTr9QUqHKWBp8GAX"}]},"maintainers":[{"name":"mashdraggin","email":"fshost@yahoo.com"}],"deprecated":"please use js-beautify instead"}},"readme":"# Node-Beautify\n\nImportant Notice!  Node-Beautify has been deprecated at the request of the developers of js-beautify.  As js-beautify can now be required as a module within a node app and used in a similar way to node-beautify, I have complied with their request.  The following documentation is preserved for the sake of those who may already be using node-beautify in their project(s).\n\n\nNode-Beautify is a node.js module that can be easily required and used to beautify assets from within a Node.js script. It is not meant to be a command-line tool, there are plenty of existing tools for that. The purpose of Node-Beautify is for javascript based build scripts or the like that want to be able to 'require' a beautifier module.  Currently it only supports javascript.  The original intent was to encapsulate additional syntax support, such as css.  I may still do that at some point, but if you would like to add another formatting parser in the meantime, feel free to fork this repo and send a pull request.\n\n## Installation\n\n    npm install node-beautify\n\n## Usage\n\nto beautify javascript:\n\n        require('node-beautify').beautifyJs(source, options);\n        \nwhere\n    source is a string of javascript source code and options (optional) allows overriding the defaults (see below)\n\n## Default Options \n\n- indentSize            : 4\n- indentChar            : ' ' (space character)\n- preserveNewlines      : true\n- bracesOnOwnLine       : false\n- keepArrayIndentation  : false\n- spaceAfterAnonFunction: true\n- indentLevel           : 0\n\n\n## Example\n    // require the module\n    var nb = require('node-beautify');\n\n    // pass a string of ugly javascript to the beautifyJs method\n    var prettyJs = nb.beautifyJs(\"function test(){console.log('test');}\");\n\n    // the results should be a nicely formatted javascript string\n    console.log(prettyJs);\n\n## To run tests\n\nClone the repository using git, e.g.\n\n    git clone https://github.com/fshost/node-beautify\n    \nAfter the repo has been cloned, in the repo directory type\n\n    npm install\n\nThe tests can be run by typing\n    \n    npm test\n\n## Requirements\n\n* node.js\n\n\n## Acknowledgements\n\nThe original [JS Beautifier](http://github.com/einars/js-beautify) is written by [Einar Lielmanis](mailto:einar@jsbeautifier.org).\n\n\n## License\n\nMIT-License, see `LICENSE.txt`.\n\n## Roadmap\n\n- Add support for other asset types\n- Integrate into Node Build Tool\n","maintainers":[{"name":"mashdraggin","email":"fshost@yahoo.com"}],"time":{"modified":"2022-06-21T12:17:10.052Z","created":"2012-03-14T22:32:38.042Z","0.0.1":"2012-03-14T22:32:42.469Z","0.0.2":"2012-03-15T00:32:41.750Z","0.0.5":"2015-04-27T20:43:44.985Z"},"author":{"name":"Nathan Cartwright","email":"fshost@yahoo.com","url":"https://github.com/fshost"},"users":{"alexandergugel":true,"sfomin":true,"whatsamoorefor":true},"homepage":"https://github.com/fshost","readmeFilename":"README.md","contributors":[{"name":"Larry Battle","url":"http://github.com/LarryBattle"}]}