Alphabetize your package.json
npm install -g pkg-sort
Run this from a directory with a package.json
file:
pkg-sort
or specify the project directory in the first arg
pkg-sort path/to/dir
require("pkg-sort")("/your/project/dir");
Inspired by cdo-pacakge
Patreon: https://www.patreon.com/qashto
Paypal: https://www.paypal.me/qashto/5