Open laino opened 4 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.
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
They're not needed if you don't plan to use the CLI.