Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 584 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 584 Bytes

requireGist.js

No time for cmd-c cmd-v? requireGist to the rescue!

Copy the following snippet and just replace gistId and gist-files you want to use:

(async () => {
  const [first, second] = await requireGist('7390481', [
    'file two',
    'file one'
  ]);
  first();
  second();
})();

requireGist.js will wrap the content of each file into a function and resolve with an array of those functions. This way, you're able to invoke them later.

requireGist.js is thoroughly tested in high traffic projects and ready for production!

Disclaimer

Do not use!