{"_id":"pretty","_rev":"325562","name":"pretty","description":"Some tweaks for beautifying HTML with js-beautify according to my preferences.","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-07T02:44:32.000Z","created":"2013-10-24T07:12:11.655Z","2.0.0":"2017-04-13T22:28:17.984Z","1.0.0":"2015-01-04T06:54:35.244Z","0.1.2":"2013-12-29T09:09:43.931Z","0.1.1":"2013-10-24T17:11:42.931Z","0.1.0":"2013-10-24T07:12:11.655Z"},"users":{"amitshahi":true,"kakaman":true,"zuojiang":true,"csbun":true,"rubiadias":true,"usex":true},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/pretty.git"},"versions":{"2.0.0":{"name":"pretty","description":"Some tweaks for beautifying HTML with js-beautify according to my preferences.","version":"2.0.0","homepage":"https://github.com/jonschlinkert/pretty","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/pretty.git"},"bugs":{"url":"https://github.com/jonschlinkert/pretty/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"condense-newlines":"^0.2.1","extend-shallow":"^2.0.1","js-beautify":"^1.6.12"},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"^3.2.0"},"keywords":["beautify","format","formatter","html","js","js-beautify","prettify","pretty"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"5b1d92919965feb80c8def5d6213b6fcc3aecf12","_id":"pretty@2.0.0","_shasum":"adbc7960b7bbfe289a557dc5f737619a220d06a5","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"adbc7960b7bbfe289a557dc5f737619a220d06a5","size":2764,"noattachment":false,"key":"/pretty/-/pretty-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty/download/pretty-2.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pretty-2.0.0.tgz_1492122496013_0.36334507493302226"},"directories":{},"publish_time":1492122497984,"_hasShrinkwrap":false,"_cnpm_publish_time":1492122497984},"1.0.0":{"name":"pretty","description":"Some tweaks for beautifying HTML with js-beautify according to my preferences.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/pretty","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/pretty.git"},"bugs":{"url":"https://github.com/jonschlinkert/pretty/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/pretty/blob/master/LICENSE-MIT"},"engines":{"node":">=0.10.0"},"main":"index.js","scripts":{"docs":"update && license && npmignore && deps && verb","all":"npm run docs"},"dependencies":{"js-beautify":"~1.5.4"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["beautify","format","formatter","html","js","js-beautify","prettify","pretty"],"gitHead":"489532941856e532faba08e4ec8e60941b4261fb","_id":"pretty@1.0.0","_shasum":"3a0ee343dc6d9aa71ff45582166bb15579dd2593","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"3a0ee343dc6d9aa71ff45582166bb15579dd2593","size":2549,"noattachment":false,"key":"/pretty/-/pretty-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty/download/pretty-1.0.0.tgz"},"directories":{},"publish_time":1420354475244,"_cnpm_publish_time":1420354475244,"_hasShrinkwrap":false},"0.1.2":{"name":"pretty","description":"Some tweaks for beautifying HTML with js-beautify according to my preferences.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/pretty","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/pretty.git"},"bugs":{"url":"https://github.com/jonschlinkert/pretty/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/pretty/blob/master/LICENSE-MIT"}],"main":"index.js","keywords":["grunt task","build","handlebars helper","underscore mixin","site generator","component generator","blog generator","handlebars","templates"],"dependencies":{"js-beautify":"~1.4.1"},"readmeFilename":"README.md","_id":"pretty@0.1.2","dist":{"shasum":"05b4a57a3dbe873467eb895099f09ef7b856c4bd","size":2622,"noattachment":false,"key":"/pretty/-/pretty-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty/download/pretty-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1388308183931,"_cnpm_publish_time":1388308183931,"_hasShrinkwrap":false},"0.1.1":{"name":"pretty","description":"Some tweaks for beautifying HTML with js-beautify according to my preferences.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/pretty","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/pretty.git"},"bugs":{"url":"https://github.com/jonschlinkert/pretty/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/pretty/blob/master/LICENSE-MIT"}],"main":"index.js","keywords":["grunt task","build","handlebars helper","underscore mixin","site generator","component generator","blog generator","handlebars","templates"],"dependencies":{"js-beautify":"~1.4.1"},"readmeFilename":"README.md","_id":"pretty@0.1.1","dist":{"shasum":"1a02d09742b850aea4bb3146aa6b1f3100790789","size":2572,"noattachment":false,"key":"/pretty/-/pretty-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty/download/pretty-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1382634702931,"_cnpm_publish_time":1382634702931,"_hasShrinkwrap":false},"0.1.0":{"name":"pretty","description":"Sensible presets and some tweaks for beautifying HTML with js-beautify according to my preferences.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/pretty","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/pretty.git"},"bugs":{"url":"https://github.com/jonschlinkert/pretty/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/pretty/blob/master/LICENSE-MIT"}],"main":"index.js","keywords":["grunt task","build","handlebars helper","underscore mixin","site generator","component generator","blog generator","handlebars","templates"],"dependencies":{"js-beautify":"~1.4.1"},"readmeFilename":"README.md","_id":"pretty@0.1.0","dist":{"shasum":"153b9b261d1e0942aafe1acc1da9fc81a72354fd","size":2557,"noattachment":false,"key":"/pretty/-/pretty-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pretty/download/pretty-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1382598731655,"_cnpm_publish_time":1382598731655,"_hasShrinkwrap":false}},"readme":"# pretty [![NPM version](https://img.shields.io/npm/v/pretty.svg?style=flat)](https://www.npmjs.com/package/pretty) [![NPM monthly downloads](https://img.shields.io/npm/dm/pretty.svg?style=flat)](https://npmjs.org/package/pretty) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/pretty.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/pretty)\n\n> Some tweaks for beautifying HTML with js-beautify according to my preferences.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save pretty\n```\n\nInstall with [yarn](https://yarnpkg.com):\n\n```sh\n$ yarn add pretty\n```\n\n## Usage\n\n```js\nvar pretty = require('pretty');\n\npretty(STRING_OF_HTML);\n```\n\nBefore\n\n```html\n<!DOCTYPE html> <html lang=\"en\"> <head> \n<meta charset=\"UTF-8\"> <title>Home</title> \n</head> <body> This is content. </body> </html>\n```\n\nAfter\n\n```html\n<!DOCTYPE html>\n  <html lang=\"en\">\n  <head>\n    <meta charset=\"UTF-8\">\n    <title>Home</title>\n  </head>\n  <body>\n    This is content.\n  </body>\n</html>\n```\n\n## Options\n\n### ocd\n\n```js\npretty(STRING_OF_HTML, {ocd: true});\n```\n\n**Type**: `Boolean`\n\n**Default**: `undefined`\n\n* condenses multiple newlines to a single newline\n* trims leading and trailing whitespace\n* ensures that a trailing newline is inserted\n* normalizes whitespace before code comments\n\n## About\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.5.0, on April 13, 2017._","_attachments":{},"homepage":"https://github.com/jonschlinkert/pretty","bugs":{"url":"https://github.com/jonschlinkert/pretty/issues"},"license":"MIT"}