{"name":"html-format","version":"1.0.0","description":"Format HTML strings.","main":"index.js","files":["index.d.ts","index.js"],"dependencies":{},"devDependencies":{"@types/node":"^10.0.4","ts-node":"^6.0.3","tslint":"^5.10.0","typescript":"^2.8.3"},"scripts":{"build":"tsc","test":"ts-node test.ts","prepare":"npm run build","version":"npm test","postversion":"git push && git push --tags"},"repository":{"type":"git","url":"git+https://github.com/mohd-akram/html-format.git"},"keywords":["html","format"],"author":{"name":"Mohamed Akram"},"license":"MIT","bugs":{"url":"https://github.com/mohd-akram/html-format/issues"},"homepage":"https://github.com/mohd-akram/html-format#readme","gitHead":"49411767971b573c611c7153f9b3da42a6f8fcc8","_id":"html-format@1.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"mohd-akram","email":"mohd.akram@outlook.com"},"dist":{"integrity":"sha512-h/twjvwvX1NGs3JT+rwCi2762nSs5yNApLk3oEHgVcrfppgrQTvMIo0T/F02bQBWDxjCcpfH4uatzrs+sJNqqA==","shasum":"9da46320a49d75258e76db01fde186e9af0635d0","tarball":"http://registry-npm.ywwl.com/html-format/download/html-format-1.0.0.tgz","fileCount":5,"unpackedSize":7991,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbJtzkCRA9TVsSAnZWagAAz5EP/0SvTcIUdNDbuKaHhYFT\nvkPyZmKrUEyupKMcU8pp7M720oNa6noDKaSIt+3ndSBuH1xtiVHDtMxCKLMW\nKOvexkaFxPNMrwwQyZ/GCBOUxDEW5IN3O/PoT5z583gXMojWnsQ7+lTkeJ1a\nn7o5ogVkbawSV0hd04xSVOCcKnbGEBHBN3Zesu/eetHGUOx92JTnRRrTBIpl\nRqQrIxVWxOJa84B26SoO9knX6UmrOd0yzgRJe3kgJrB7RdCT5SuHE4kXBKBj\ndeG8qj6GZQkZX18N6k0XlHpiVGnj8r3DTmfkgrsOisADhavICwZssJbenjgI\nTvDf6Jcjd5zJUkfA7yzELYU2eUq+u6kLBGeDoMd9xpqPStRangaYym5+48d3\nx1KjzQoFNr302R0Luc/ZtySz8B1aqvryhck8LyQ+hdE3g/Bc6hHiBKrSqZVT\n0wyQtqhT6WyD5ln7F3jnkotOf0G8HrGH8E+G0NyDU3dLmr7EvVkeVBV6CxdT\nG5N+IGKJ1d/7mjEc/qfxUE1vJ1CF4rCGywwCcAMQLeq2q30o+753DOkDyJp5\nn/saeg+1FVjhbtU1bdNPnFqOGBoOHI80Djs83hnuY8WqmKBVFS9LKQgcnCAr\nI5/rqNhgtZH8eH6KyBw8BE7/9WZqVwQ9YC8muludow4vIcweLW1M/nuOO9Rj\nZ2Ev\r\n=7X+R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDQbR8vDyOmSaEq9WloWlO6YjrClSWoDa0Kmg3htIeyAiEAu6EmkLFRTUrbCYVFX0rlnh7pU2/IGiyih5t0YFerfqw="}],"size":3183,"noattachment":false,"key":"/html-format/-/html-format-1.0.0.tgz"},"maintainers":[{"email":"mohd.akram@outlook.com","name":"mohd-akram"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-format_1.0.0_1529273571323_0.8811716547529949"},"_hasShrinkwrap":false,"readme":"# html-format\n\nFormat HTML strings by indenting, wrapping, and removing unnecessary\nwhitespace while preserving newlines.\n\n## Install\n\n    npm install html-format\n\n## Usage\n\n```javascript\nimport format from \"html-format\";\n\nconst html = `\\\n<body>\n<main class=\"grid\">   </main>\n</body>\n`;\n\n// indent = 2 spaces (default), width = 80 characters (default)\nformat(html) ==\n  `\\\n<body>\n  <main class=\"grid\"> </main>\n</body>\n`;\n\n// indent = 4 spaces, width = 80 characters (default)\nformat(html, \" \".repeat(4)) ==\n  `\\\n<body>\n    <main class=\"grid\"> </main>\n</body>\n`;\n\n// indent = 4 spaces, width = 20 characters\nformat(html, \" \".repeat(4), 20) ==\n  `\\\n<body>\n    <main\n        class=\"grid\">\n    </main>\n</body>\n`;\n```\n","publish_time":1529273571741,"_cnpm_publish_time":1529273571741,"dist-tags":{"latest":"1.1.7"}}