2.4.2 • Published 10 months ago

libstub v2.4.2

Weekly downloads
36
License
MIT
Repository
github
Last release
10 months ago

libstub

libstub is a tiny UMD module that uses the global namespace to dynamically link dependencies between JS bundles.

Why? To help link together JS packages, independent of how they were built.

Usage

  // include libstub before these files

  // file a.js, wants to export module a

  var a = {};

  libstub.export('a', a);


  // file b.js, wants to import a and export b

  var a = libstub.import('a');
  var b = {};

  libstub.export('b', b);


  // file c.js, wants to import a and b.

  var a = libstub.import('a');
  var b = libstub.import('b');

API

2.4.1

11 months ago

2.4.2

10 months ago

2.4.0

5 years ago

2.3.0

5 years ago

2.1.0

5 years ago

2.0.0

7 years ago

1.0.0

7 years ago

0.1.2

7 years ago