Skip to content

Instantly share code, notes, and snippets.

@MylesBorins

MylesBorins/index.js

Created Feb 12, 2021
Embed
What would you like to do?
example wrapper
const namespace = require('./wrapper');
console.log(namespace);
{
"hello": "world"
}
{
"name": "wrapper",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"author": "Myles Borins <mylesborins@github.com>",
"license": "Apache-2.0"
}
const namespace = require('./namespace.json');
Object.assign(namespace, {
"goodnight": "moon"
});
module.exports = namespace;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment