fuse-npm

0.0.1 • Public • Published

fuse-npm

Allows your JS application to download, bundle and require and/or serve NPM packages to the browser dynamically by name and version.

Usage

var {fused} = require('fuse-npm');
 
fused('vue@^1.0.0').then(fileName => console.log(fileName));
import {fused} from 'fuse-npm';
 
var fileName = await fused('vue@^1.0.0');

The promise will resolve with the fileName of a .js file containing the npm module bundled with fuse-box.

The npm module is downloaded and bundled on-the-fly - every step is cached.

All the cache happens in fuse_modules.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    1
  • 0.0.0
    0

Package Sidebar

Install

npm i fuse-npm

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • eeddow