This is an alpha version - We do not recommend using it in production environments, etc.
Options, Objects, and syntax are subject to change.
The easiest way to use CSP is to Using this middleware is as simple as:
var cspre = require('cspre')()
However, you may wish to specify options, ie.
var options = { index: 'default', ext: '.cs', cd: '/home/ }
var cspre = require('cspre'){options}
CSPre currently supports four options
This is the default file to serve when a directory is requested
This is the default file extension that will be checked if omitted in the request
Directory to serve files from (relative to current script's location).
There is no cache in the current implementation
Three objects are available from within CSPre scripts: req, res and next.
Please see the Express API documentation for more information.