krg7880 / json-schema-generator

Generates draft v4 schema from a local file or a remote JSON url.
MIT License
174 stars 53 forks source link

Separate cli #7

Closed nickyout closed 9 years ago

nickyout commented 9 years ago

With updated shrinkwrap. I've tested it (with -g) from my own repository, it installs pretty-data.

I've also just found that nodejs can detect stdin usage, which makes an argument like - unnecessary. So, with this, you can use cat input.json | json-schema-generator > output.json without any additonal argument. I've updated the help text, README and test case for this. It should still be backwards compatible.

Also, could you bump the version and npm publish the result? If only for the sake of fixing the installation of dependencies for other users.

nickyout commented 9 years ago

It works! Thanks ^^

krg7880 commented 9 years ago

Thanks again for the enhancements. I'll be sure to add you as a contributor when I get a minute.