A lightweight, reliable script loader for browsers that fetches JavaScript files and executes callbacks once the script is evaluated. Version 1.0.3 is the current stable release with no active development. It works with CommonJS (require) and has no dependencies. Key differentiator: it focuses solely on script loading with error handling, unlike heavier loaders like RequireJS or SystemJS.
npm install fetch-jsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Show how to install and use fetch-js to load a jQuery script with error handling.
Use dynamic import() or a more modern script loader like scriptjs or loadjs.
Use require() or switch to an ESM-compatible package.
Chain fetchJs calls manually or use a Promise-based wrapper.
Use `const fetchJs = require('fetch-js');`Ensure the URL is correct and the CDN/script is reachable.
No dependency data recorded yet.