Want to see pretty graphs? Log in now!
npm install stockpile
|2||downloads in the last month|
|Last Published By|
|Version||0.2.2 last updated 2 years ago|
|Dependencies (6)||coffee-script, express, request, mime, optimist, envv|
Stockpile comes in two flavors, each express.js HTTP servers, so they're easily attached to any existing application. You can also use it standalone, though the
stockpile command-line interface. Lastly, Stockpile is packaged together with Draughtsman, a web server that aids in front-end prototyping and development.
Stockpile will keep files cached indefinitely so don't use it for files that change often. Stockpile does not understand HTTP cache or expires headers.
npm install stockpile.
The cache servers
servers.cache server will fetch and then immediately cache anything you ask of it. For example:
For now, read the code. (All 80 lines!)
# serve both Stockpile caches on your local machine stockpile serve <port:3500> # clean the cache stockpile clean # find the location of your cache stockpile where # figure out the paths to popular libraries on public CDNs # and on the Stockpile localhost. stockpile find <semver>
stockpile find firstname.lastname@example.org will return
Stockpile: underscore.js/1.3.3/underscore-min.js CDN: http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.3/underscore-min.js
So you know you can find Underscore.js through Stockpile at