phadej / relaxed-json

Relaxed JSON is strict superset JSON, relaxing strictness of vanilla JSON
http://oleg.fi/relaxed-json/
Other
80 stars 8 forks source link

Make 'chalk' and 'commander' dependencies optional. #24

Open laino opened 4 years ago

laino commented 4 years ago

They're not needed if you don't plan to use the CLI.

fregante commented 3 years ago

They can't be made optional, but if desired relaxed-json could be API-only and relaxed-json-cli would include them. That's how Sindre Sorhus does it and it saves quite a few unnecessary dependencies when you just need to use modules programmatically.

fregante commented 3 months ago

I released @fregante/relaxed-json if you'd like. It's an exact copy of the package, except its lacks the executable and therefore it’s dependency-free

https://github.com/fregante/relaxed-json#readme