prettier-semistandard
v0.1.1
Published
Prettier for JavaScript Semistandard Style
Downloads
15
Readme
prettier-semistandard
This tool combines the prettier pretty-printer with the popular configuration-free JavaScript Standard Style.
API
import format from 'prettier-semistandard';
import { readFileSync } from 'fs';
const source = readFileSync('index.js', 'utf8');
format(
source
).then(
console.log
);
CLI
Installation
$ yarn global add prettier-semistandard
Usage
$ prettier-semistandard --help
Usage
$ prettier-semistandard [<file|glob> ...]
Examples
$ prettier-semistandard
$ prettier-semistandard index.js
$ prettier-semistandard foo.js bar.js
$ prettier-semistandard index.js src/**/*.js