1.0.13 • Published 4 years ago

malta-beautify v1.0.13

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

npm version npm downloads npm downloads


This plugin can be used on: .js, .css, .html files
and even on .pug, .md, .less, .scss after using the right plugin

Options : all options of the js-beautify package

Sample usage:

malta app/source/index.js public/js -plugins=malta-beautify[\"space_after_anon_function\": false,
\"brace_style\": \"collapse\"]

or in the .json file :

"app/source/index.js" : "public/js -plugins=malta-beautify",
"app/source/index.md" : "public/ -plugins=malta-markdown...malta-beautify",
"app/source/style.less" : "public/css -plugins=malta-less...malta-beautify"

or in a script :

var Malta = require('malta');
Malta.get().check([
    'app/source/index.js',
    'public/js',
    '-plugins=malta-beautify',
    '-options=showPath:false,watchInterval:500,verbose:0'
    ]).start(function (o) {
        var s = this;
        console.log('name : ' + o.name)
        console.log("content : \n" + o.content);
        'plugin' in o && console.log("plugin : " + o.plugin);
        console.log('=========');
    });
1.0.13

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago