cli tool that cleans up package.json files.
npm install fixpack
|6||downloads in the last day|
|33||downloads in the last week|
|83||downloads in the last month|
|Version||0.0.2 last updated 8 days ago|
A package.json file scrubber for the truly insane.
It will re-write your package.json file as follows:
- name first
- description second
- version third
- author fourth
- all other keys in alphabetical order
- dependencies and devDependencies sorted alphabetically
- append operating system appropriate newline at the end of the file
It will warn you if any of these are missing:
Fix all indenting to 2 spaces.
Oh, and it will tolerate improperly quoted and comma'd JSON thanks to ALCE.
- install it globally
npm i -g fixpack
- run it in the same directory as your package.json, that's it.
What you might do if you're clever
npm i cool_package --save && fixpack
- 0.0.2 diff - EOF newline
- 0.0.1 - initial release
This embarrassing display of insanity, type-A-ness, and OCD brought to you by @HenrikJoreteg.