Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/folletto/kombiner
Node.js library to combine multiple JS/CSS files to a single endpoint, serving a single file.
https://github.com/folletto/kombiner
Last synced: 10 days ago
JSON representation
Node.js library to combine multiple JS/CSS files to a single endpoint, serving a single file.
- Host: GitHub
- URL: https://github.com/folletto/kombiner
- Owner: folletto
- Created: 2014-04-13T18:25:23.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-13T22:41:25.000Z (over 10 years ago)
- Last Synced: 2024-04-26T12:47:18.981Z (7 months ago)
- Language: JavaScript
- Size: 168 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Kombiner
========**Node.js library to combine multiple JS/CSS files to a single endpoint, serving a single file.**
USAGE
-----```
var k = require('kombiner').listen(server);
k.serve('allinone.js', [
'mylibrary.js',
'otherstuff.js'
]);
```This call combines the two js files into a single endpoint that can be called from the client
at `/allinone.js`.BENEFITS
--------* Combine multiple JS or CSS files in one, thus having a single HTTP request.
* Caches the result in memory to be fast. The combination is done only once.
* Watches the files and updates the combined output if they change.
* Supports ETag for client-side caching.LICENSE
-------_Copyright (C) 2013-2014, Davide Casali_
_Licensed under **MIT License**_> _Alone we can do so little;
together we can do so much._
– Helen Keller