sort-npm-scripts

Sort package.json scripts alphabetically. Great as pre-commit hook.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
sort-npm-scripts
001.1.04 years ago6 years agoMinified + gzip package size for sort-npm-scripts in KB

Readme

Sort NPM Scripts
Keep your package.json orderly by alphabetizing the scripts, dependencies, & devDependencies objects by running this script.

Usage

Must be ran in same directory as a package.json

One time run

npx sort-npm-scripts

Install

npm install --save-dev sort-npm-scripts

Great to use with husky & lint-stagged!