{"versions":{"0.2.2":{"name":"@johnsoncodehk/pug-beautify","main":"index","version":"0.2.2","description":"Simple Pug(Jade) Beautify","keywords":["jade","pug","beautify","formatter"],"scripts":{"test":"mocha ./test/test.js"},"repository":{"type":"git","url":"git+https://github.com/johnsoncodehk/pug-beautify.git"},"author":{"name":"Marani Matias Ezequiel","email":"maranimatias@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"^3.4.2"},"gitHead":"b229fbee1009fbf78a43b89defa45144aad33898","bugs":{"url":"https://github.com/johnsoncodehk/pug-beautify/issues"},"homepage":"https://github.com/johnsoncodehk/pug-beautify#readme","_id":"@johnsoncodehk/pug-beautify@0.2.2","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-qqNS/YD0Nck5wtQLCPHAfGVgWbbGafxSPjNh0ekYPFSNNqnDH2kamnduzYly8IiADmeVx/MfAE1njMEjVeHTMA==","shasum":"6818e7cab0f2d2354492c13bad73881e9cb3ef54","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@johnsoncodehk/pug-beautify/-/pug-beautify-0.2.2.tgz","fileCount":10,"unpackedSize":15771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiK7zSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrNSw//TW4ytfsckWuU8AQo6pdOU5tHu9TGfFJead80u69BbvD0qx5s\r\nAT/vfJroIii/XdQwSxhUwXZlmP5tXXwXu5eZSYqf3PdXpKEitROg47sbvIaJ\r\ncMAe9vW2ZZ7g7DDn8jv3mZ7c4eo+EuQ6IgSvPRrovrljXJDcVvCGhyk+x112\r\nW4X1Wh2WgaHxb3i/q5LznGcj9UVphKDsKStPuFxK5PnUnkghOaHTKeo10f6N\r\nASKhtOii+3ummKJ7VlAWaAaSi8AYTuOCQ7mzLwxJavq8xT39DjQfjhc578iM\r\niJnf15yr6cWgcFQ9r2opRShXUX1KwrCEUuiReRNHRHXzcb7RIweprQ6GAzGq\r\n//J9iE9DrA0i4mTW3hxKbF15OrcUp+6eatEDGQVGHas+B4hNnsMbpzbZNzAM\r\n25rL4TkghobRDlZ00/7ZNf04OjS5eQePSKOFPYUTFNwc6xsUSvLIY6Qvp6iz\r\nNTG97CAUI3+Z9eWjUyjnLtwwHBW7Dx2f4Vy8HEFOUKFZJWfbNzHNM+51DbRc\r\nUmKxqbjTOaP3sOBAaL4pRE729OHF84rEiO6+Mm0XQsPGpnDWCX4SUfhsM6RV\r\norYOnKXPJbqQyW8mj9cH47JjjJ64MZsAl/Oa17P9UIn5ITwmPjj/aw3fzNv8\r\n21z30m5tsJRlQvjLZCXSAr8RwaKB8jkGCHg=\r\n=prrV\r\n-----END PGP SIGNATURE-----\r\n","size":3716},"_npmUser":{"name":"anonymous","email":"johnsoncodehk@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"johnsoncodehk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pug-beautify_0.2.2_1647033554387_0.04343736127621356"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-11T21:19:20.930Z","contributors":[]}},"dist-tags":{"latest":"0.2.2"},"name":"@johnsoncodehk/pug-beautify","time":{"created":"2022-03-11T21:19:24.012Z","modified":"2022-03-11T21:19:24.302Z","0.2.2":"2022-03-11T21:19:14.596Z"},"readme":"# Pug(former jade) beautify\nThis tiny program format a pug(former jade) template file.\nFor reusability, it's made as a module suggested by [@Glavin001](https://github.com/Glavin001).\nPlease refer [this issue](https://github.com/vingorius/jade-beautify/issues/7).\n\n## Installation\n```shell\nnpm install pug-beautify\n```\n## Test\n```shell\nnpm run test\n```\n### Options\n* fill_tab - boolean, fill whether tab or space, default true.\n* omit_div - boolean, whether omit 'div' tag, default false.\n* tab_size - number, when 'fill_tab' is false, fill 'tab_size' spaces, default 4.\n* separator_space - boolean, When 'separator_space' is true, the attribute separator is comma, default true.\n* omit_empty_lines - When 'separator_space' is false, delete line blank, default true.\n\n## How to use\n```javascript\nvar output = pugBeautify(code);\n```\n```javascript\nvar output = pugBeautify(code,{\n    fill_tab:true,\n    omit_div:false,\n    tab_size:4,\n    separator_space:true,\n});\n```\n\n## Example code\n```javascript\nvar fs = require('fs');\nvar pugBeautify = require('pug-beautify');\nvar code = fs.readFileSync('sample.jade','utf8');\nvar option = {\n    fill_tab: true,\n    omit_div: false,\n    tab_size: 4,\n    separator_space: true\n};\ntry {\n    var output = pugBeautify(code,option);\n}catch(error){\n    // Error occurred\n}\n```\n## Todo","users":{}}