ziishaned / dumper.js

A better and pretty variable inspector for your Node.js applications
MIT License
2.76k stars 75 forks source link

How to use development vs production #22

Open eric-naguras opened 5 years ago

eric-naguras commented 5 years ago

Hi, Thanks for making this handy module.

But something is unclear to me, how to use this in development vs production?

You advice to add this module to the dev dependencies. But what happens in production where the dev modules are not available? Wouldn't the code crash because the module cannot be found?

What would be the best way of handling this?

Cheers.

shirshak55 commented 4 years ago

@eric-naguras I think this should be global constant just like console.log and there should be linter that will avoid using dd so we wont accidentally push to production / version control right?