lime-static
About
This is a simple static file router for OWIN-JS REST framework for the limerun
project
Installation
$ npm install lime-static
Usage
var static = ;app;
Options
maxage
Browser cache max-age in milliseconds. defaults to 0hidden
Allow transfer of hidden files. defaults to falseindex
Default file name, defaults to 'index.html'defer
If true, serves afteryield next
, allowing any downstream middleware to respond firstsync
If true uses node fs synchronous calls, if false uses asynchronous
Example
// Dependenciesconst lime =static =http = ;// Create Factoriesvar app = ;// Appapp;http;
Example with mount location
// Dependenciesconst lime = static = http = ; // Create Factoriesvar app = ; // Mount app to map URL /bootstrap to file system directory \lib\vendor\bootstrapapp; // Run app using standard owinJS host http;
License
Apache 2.0