malta-beautify

1.0.13 • Public • Published

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('=========');
    });

/malta-beautify/

    Package Sidebar

    Install

    npm i malta-beautify

    Weekly Downloads

    0

    Version

    1.0.13

    License

    MIT

    Unpacked Size

    3.63 kB

    Total Files

    4

    Last publish

    Collaborators

    • fedeghe