keithamus / sort-package-json

Sort an Object or package.json based on the well-known package.json keys
MIT License
790 stars 83 forks source link

feature: stdin / stdout #293

Closed tomdavidson closed 1 year ago

tomdavidson commented 1 year ago

Hello, I have wanted to used sort-package-json with dprint which handles the file io and needs stdin and standout, such as: $ cat package.json | sort-pakcage-json - > package.json

Would this be beneficial in other contexts?

keithamus commented 1 year ago

I like the idea. PRs welcome :slightly_smiling_face: