{"_id":"@johnsoncodehk/pug-beautify","_rev":"3210483","name":"@johnsoncodehk/pug-beautify","description":"Simple Pug(Jade) Beautify","dist-tags":{"latest":"0.2.2"},"maintainers":[{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"}],"time":{"modified":"2024-02-18T06:01:49.000Z","created":"2022-03-11T21:19:14.596Z","0.2.2":"2022-03-11T21:19:14.596Z"},"users":{},"author":{"name":"Marani Matias Ezequiel","email":"maranimatias@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/johnsoncodehk/pug-beautify.git"},"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":{"shasum":"6818e7cab0f2d2354492c13bad73881e9cb3ef54","size":3716,"noattachment":false,"key":"/@johnsoncodehk/pug-beautify/-/@johnsoncodehk/pug-beautify-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@johnsoncodehk/pug-beautify/download/@johnsoncodehk/pug-beautify-0.2.2.tgz"},"_npmUser":{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"},"directories":{},"maintainers":[{"name":"johnsoncodehk","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","publish_time":1647033554596,"_cnpm_publish_time":1647033554596}},"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\n","_attachments":{},"homepage":"https://github.com/johnsoncodehk/pug-beautify#readme","bugs":{"url":"https://github.com/johnsoncodehk/pug-beautify/issues"},"license":"MIT"}