Skip to content

Instantly share code, notes, and snippets.

@clucasalcantara
Last active July 19, 2018 13:27
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 clucasalcantara/f9d304f4ce7fc2d7139a28d6a80fc23c to your computer and use it in GitHub Desktop.
Save clucasalcantara/f9d304f4ce7fc2d7139a28d6a80fc23c to your computer and use it in GitHub Desktop.
common-js
module.exports = {
lets: () => {},
make: () => {},
some: () => {},
magic: () => {}
}
// output
const x = require('./your_module')
console.log(x)
/*
* {
* lets: [Function: lets],
* make: [Function: make],
* some: [Function: some],
* magic: [Function: magic]
* }
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment