Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including beautify-proj with all npm packages installed. Try it out:

var beautifyProj = require("beautify-proj")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

beautify-proj v1.0.0

JS Beautifier

beautify-proj Build Status Coverage Status Dependency Status Code Climate Issue Count

Uses js-beautify to beautify an entire directory, including its subdirectories.

Usage

beautify-proj -i dir [ -o dir ] -c js-beautify-config-file [ -e reg-ex ]

See js-beautify for JSON config file options.

Examples

Beautify ./scripts in place:

beautify-proj -i scripts -o . -c beautify.json

Beautify ./scripts in place and ignore *keep-ugly*

beautify-proj -i scripts -o . -c beautify.json -e keep-ugly

Beautify ./scripts and place beautified files in /tmp/scripts:

beautify-proj -i scripts -o /tmp -c beautify.json

Test for any ugly files (non-beautified) in scripts:

beautify-proj -i scripts -c beautify.json

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free