https://github.com/sage/streamline-require
Client side require infrastructure built with (and for) streamline
https://github.com/sage/streamline-require
Last synced: about 1 year ago
JSON representation
Client side require infrastructure built with (and for) streamline
- Host: GitHub
- URL: https://github.com/sage/streamline-require
- Owner: Sage
- Created: 2012-02-29T17:16:50.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2022-04-06T12:01:16.000Z (over 4 years ago)
- Last Synced: 2025-04-24T15:03:59.543Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 85 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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](https://github.com/Sage/streamline-require/blob/master/API.md).
For support and discussion, please join the [streamline.js Google Group](http://groups.google.com/group/streamlinejs).
## License
This work is licensed under the [MIT license](http://en.wikipedia.org/wiki/MIT_License).