{"_id":"@awea/gulp-pretty-html","_rev":"3-63d03477c4c4bcdc1f5cc7ebe460652b","name":"@awea/gulp-pretty-html","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@awea/gulp-pretty-html","version":"1.0.0","private":false,"main":"index.js","license":"GPL-3.0","description":"A simple gulp plugin to make HTML pretty","homepage":"https://github.com/Awea/gulp-pretty-html","author":{"name":"Awea","email":"aweaoftheworld@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/Awea/gulp-pretty-html.git"},"bugs":{"url":"https://github.com/Awea/gulp-pretty-html/issues"},"dependencies":{"pretty":"^2.0.0"},"keywords":["beautify","prettify","gulp","html"],"gitHead":"8a30e36a79f75e07db4e2fcae472000bf70e3ae4","_id":"@awea/gulp-pretty-html@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.10.0","_npmUser":{"name":"awea","email":"aweaoftheworld@gmail.com"},"dist":{"integrity":"sha512-8qhGUx9Z3wq+I3iAT3PbCTuqb6s8qC5Tg1kwCRVUH6Rm5IF5I2EdFHCyS3MtQmd1Dp3v0JWUAZDKhEEDqvBAmg==","shasum":"62607dc4e9a8ac0a64c11ca6d7f71c169f5e51e3","tarball":"https://registry.npmjs.org/@awea/gulp-pretty-html/-/gulp-pretty-html-1.0.0.tgz","fileCount":4,"unpackedSize":6796,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBtZwbGhsu7bgKdsbDAcD5+P2XiwSNMAPQhWXS8MtwbAAiEAmqq4l0Wu/PLKBuq8e3HTj3/0jujGgPSp1NbGNIDDXTg="}]},"maintainers":[{"name":"awea","email":"aweaoftheworld@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-pretty-html_1.0.0_1522943966987_0.7055023041087496"},"_hasShrinkwrap":false},"1.0.1":{"name":"@awea/gulp-pretty-html","version":"1.0.1","private":false,"main":"index.js","license":"GPL-3.0","description":"A simple gulp plugin to make HTML pretty","homepage":"https://github.com/Awea/gulp-pretty-html","author":{"name":"Awea","email":"aweaoftheworld@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/Awea/gulp-pretty-html.git"},"bugs":{"url":"https://github.com/Awea/gulp-pretty-html/issues"},"dependencies":{"pretty":"^2.0.0"},"keywords":["beautify","prettify","gulp","html"],"gitHead":"4f40e4fe10c20bfe55c3c84559b3b24aeaabebbe","_id":"@awea/gulp-pretty-html@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.10.0","_npmUser":{"name":"awea","email":"aweaoftheworld@gmail.com"},"dist":{"integrity":"sha512-2p7Hf82N8AOtsKPl0ZtQP82sii+3byz6KCwQ4vcASTo/pvbLKrsbHjn/JlJbpOl8veWgBDOlf+aZyIYpsgHq9w==","shasum":"38f85491e7352737768d9095bd674ba03f157344","tarball":"https://registry.npmjs.org/@awea/gulp-pretty-html/-/gulp-pretty-html-1.0.1.tgz","fileCount":4,"unpackedSize":6839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdTAPCRA9TVsSAnZWagAA/hsP/jlbrxC/fJzMoSf3mdRo\n3p9LWbJGNDvWAwCBJDGoZcADWOynm7r6z7yis2+fodSrLeD1SI26gOnh4NBd\nVXPtq1a5rnanInhFY+GulLAYHEtsCVWMhJT539GHlCLjuBKisUp1Xzs4LF2p\nze7ToEE0LGTfN+BiOcrEVL2esfl/IKBCpT3VzWLrLdhilrepVXrYD3FDWJlp\nshOXCTaPsV5eU/hjIPXBIfCBLw+Z/io/VFZ5YgsrYuHtESU5gnPPDZCUV2ZC\nj79R95mcWNo8M79kFmSBxGmn5B0j1fCH3Vd59khkTlRB+cS/qndgF+frQ07O\nwDhDRYwfHdIu/oLnKoRplHlzERaJ6V9Cz8Wmd6KY2/aanuDW5ZhM4L5uBcLD\nK/eRbBBxgTYert7Soqd5eEUDVbhtker6IOVZ8cxOyGfKN0VESCAXm+QmtnpX\nIhfveH76/WqU1VecxDNUhFXTdxh5PYuK8L6TmN/OapI2jqH0/MjpIyFUn8lG\nkNhzNjwr/2xujr9UfGHCU50+tO20xfTEeMuoUQFuSr9dwo09Yhxi074kNLM6\nv9D21u6hqcxMqV7LNnWWKicwkY0YiCURMq9JfBEBpwRtGFvX5KBw6BYizvsX\nsUD41VLlDHxS0b9YGva7LezXC6I7wk4p0EhdRjQuz/Y6bJzYFlME8XmwLT42\nnoc3\r\n=2NuU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHd0hRb4mnsuukNG/dSJ7nLaYpWljlbBVm80dwam7QHhAiAcncxyhCC9esD0RQcIxIuvRiEWFKfOzXH6JlL54IJamA=="}]},"maintainers":[{"name":"awea","email":"aweaoftheworld@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-pretty-html_1.0.1_1534406670578_0.015254763558705697"},"_hasShrinkwrap":false}},"time":{"created":"2018-04-05T15:59:26.940Z","1.0.0":"2018-04-05T15:59:27.102Z","modified":"2022-04-04T16:49:49.806Z","1.0.1":"2018-08-16T08:04:30.651Z"},"maintainers":[{"name":"awea","email":"aweaoftheworld@gmail.com"}],"description":"A simple gulp plugin to make HTML pretty","homepage":"https://github.com/Awea/gulp-pretty-html","keywords":["beautify","prettify","gulp","html"],"repository":{"type":"git","url":"git+https://github.com/Awea/gulp-pretty-html.git"},"author":{"name":"Awea","email":"aweaoftheworld@gmail.com"},"bugs":{"url":"https://github.com/Awea/gulp-pretty-html/issues"},"license":"GPL-3.0","readme":"# Gulp pretty HTML\nA simple Gulp plugin to make HTML pretty.\n\n## Why?\nSometimes you need to deliver pretty HTML. Since Jade became [Pug](https://pugjs.org/api/getting-started.html) the `pretty` option has been marked as deprecated. This small plugin intends to replace it.\n\nI made it for that usage but may be there is others, dunno :)\n\n## Prerequisites\n* Gulp >= 3\n\n## Installation\n\n`npm install @awea/gulp-pretty-html`\n\n**or**\n\n`yarn add @awea/gulp-pretty-html`\n\n## Options\n\nGulp pretty HTML uses [Pretty](https://github.com/jonschlinkert/pretty) to prettify the HTML. The only option is `{ocd: true / false}`. As explained in Pretty README this option will:\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## Usage example\n\nFor a given gulp `pug` task:\n\n```js\ngulp.task('pug', function (done) {\n  gulp.src('templates/**/*.pug')\n    .pipe(pug())\n    .pipe(gulp.dest('./dist'))\n    .on('end', done)\n});\n```\n\nSimply add `pretty()` after `pug()`:\n\n```js\nvar pretty = require('@awea/gulp-pretty-html')\n\ngulp.task('pug', function (done) {\n  gulp.src('templates/**/*.pug')\n    .pipe(pug())\n    .pipe(pretty())\n    .pipe(gulp.dest('./dist'))\n    .on('end', done)\n});\n```","readmeFilename":"README.md"}