Skip to content

Instantly share code, notes, and snippets.

@MylesBorins
Created February 12, 2021 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MylesBorins/6c6ac8e07b3aacc5b198d601f9d9b599 to your computer and use it in GitHub Desktop.
Save MylesBorins/6c6ac8e07b3aacc5b198d601f9d9b599 to your computer and use it in GitHub Desktop.
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