LoginSignup
0
0

More than 5 years have passed since last update.

JavaScriptのStandardStyleを使って手軽にフォーマットする方法

Last updated at Posted at 2017-09-09
# global
npm install -g standard
standard --fix target.js

# local
npm install standard
./node_modules/.bin/standard --fix r:/target.js

# npx
npm i -g npx # npx入れてない場合
npm install standard
npx standard --fix r:/target.js

グローバルに入れておけば、割りとサクッと実行できますね。ローカルはフルパス感とタイプ量が気になりますね。でも、ローカル好きとしては外せないですね(・∀・)

ここから引用
https://standardjs.com/

0
0
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0