Normally Palatable Mango

    dotbeautify

    1.0.0 • Public • Published

    dotbeautify, uses js-beautify on given directories to automatically formatcode

    USEAGE: var dotBeautify = require('dotbeautify');

    dotBeautify.beautify(['./lib/']);

    If you want to use it as a pre commit hook and block any unbeautified code, simply add it to your git pre commit hook with the --pre-commit switch, this will throw an exception which will block the commit.

    All source code will be automatically beautified by js-beautify

    Also allows you to pass in second {options} object as defined by https://github.com/beautify-web/js-beautify#options

    Install

    npm i dotbeautify

    DownloadsWeekly Downloads

    4

    Version

    1.0.0

    License

    MIT License

    Last publish

    Collaborators

    • bearjaws