Itility node utility functions
Utility functions for things you need all the time in node.
INSTALL
npm i itility
or yarn add itility
FUNCTIONS
Environment mode
Get strings based on the NODE_ENV you are in.
const mode = // development: mongodb://localhost:27017// production: mongodb://mongo:27017const url = // Same result, different methodconst url = // Same result, shared portconst url = // staging: mongodb://staging:27017const url =
MIT licensed. Enjoy!