getscript

0.1.0 • Public • Published

getscript

async js loader for browsers.

getscript('/example.js', function (err, res) {
  if (err) throw err; // throws URIError
  res.uri; // example.js
  res.event; // onload event
});

license

mit

Package Sidebar

Install

npm i getscript

Weekly Downloads

4

Version

0.1.0

License

MIT

Last publish

Collaborators

  • acroyear2