streamline-require

3.1.0 • Public • Published

streamline-require

This package contains a small infrastructure to load streamline and regular JS modules from the browser. It applies the streamline transformation server side and caches the transformed files. It also optimizes roundtrips between client and server: the required module and all its dependencies are transferred in one message. Also, dependencies that have already been transferred to the browser are not re-transferred when you require additional modules.

Note: this infrastructure does not handle all the subtleties of node's require logic but it handles enough to support our applications (and it does it very efficiently). It is provided as is and contributions to improve it are welcome.

Resources

The API is documented here.

For support and discussion, please join the streamline.js Google Group.

License

This work is licensed under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i streamline-require

Weekly Downloads

20

Version

3.1.0

License

none

Unpacked Size

29.5 kB

Total Files

9

Last publish

Collaborators

  • bjouhier
  • eboureau