Skip to content

Instantly share code, notes, and snippets.

@mitchallen
Created April 3, 2023 02:00
Show Gist options
  • Save mitchallen/11e774f7e4b0284abd6bc8a3fa5b053c to your computer and use it in GitHub Desktop.
Save mitchallen/11e774f7e4b0284abd6bc8a3fa5b053c to your computer and use it in GitHub Desktop.
An example of importing a module in the same scope
"use strict";
var tools = require('@YOUR-SCOPE/demo-tools');
module.exports = demoMain;
function demoMain(a,b,c) {
// return a + b - c
return tools.subtract(tools.add(a,b),c);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment