Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { envConfig } = require('url-config');
- module.exports.envCfg = function (options = {}) {
- return async function () {
- const config = await envConfig('mongodb://localhost:27017', 'dbname');
- }
- }
Add Comment
Please, Sign In to add comment