depensort
a package that helps you keep a beautiful looking package.json that has been sorted as per your configuration
NPM
GitHub
Installation
yarn add depensort --dev
npm i -D depensort
Usage
The package is used to sort the dependencies in the package.json file in ascending order of key length after every install(or on command)
1. Set the package to run after every install
"scripts":{
"postinstall":"depensort"
}
2. Call it manually
From the cmd
- Install the package globally
npm i -g depensort
OR
yarn global add depensort
- Call it from the cmd
depensort
For the devs
Refer to the Developer Release Documentation
use the yarn link
in the package's folder
and yarn link "depensort"
in the folder you want to test the package in
this will install the package as a symbolic link in the test folder
now you can now use the package as if it was installed.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Some files to refer
Please make sure to update tests as appropriate.