Skip to content

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

Notifications You must be signed in to change notification settings

teamrandom/requireGist.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

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!

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 59.7%
  • HTML 40.3%