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:
- author
- repository
- keywords
- main
- bugs
- homepage
- license
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.
fixpack
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.
MIT