Skip to content

briandipalma/js-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-formatter

Build Status Dependency Status devDependency Status

Purpose

This repository hosts a wrapper around esformatter that formats JS code to follow the Caplin style guide. As esformatter can be used stand alone with configuration it's generally not required to wrap it. The reason it's wrapped is for convenience as this package depends on a set of required esformatter plugins. It also hosts the style guide esformatter configuration. So installing it will deal with plugins and configuration. This package can be used stand alone from the command line or as a required library.

Mechanics

To use as a stand alone CLI tool install it globally with the command.

$ npm i -g briandipalma/js-formatter

Once installed cd into a directory with a src subdirectory and run.

$ js-formatter

This will format all *.js files in the src directory.

$ js-formatter -t

Will format the tests directory.

Testing

$ npm t

About

Tool for formatting JS code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published