Making trapdoors for secret files since 1748.
Note: This project is in early development, and versioning is a little different. Read this for more details.
Why should you care?
So you are serving a static site. You know, the usual. But you've got some files in your project you don't want to be publicly available. At the same time you don't want to have to remove them from your project. Escapist to the rescue!
npm install escapist-middleware
Escapist is pretty easy to use. You can feed it a string or array of string with paths to the files you'd like to prevent from being served. You can even use globstars, a la minimatch! Quick example:
var http =connect =escapist = ;var app =;http;
Also, as noted, you can pass an array of string and use globstars, like this:
Note: We do not endorse keeping ssh private keys and/or plaintext passwords in your repos.
Escapist does not actually serve files, so it's not a standalone solution. It should be used as part of a larger stack. For an example of an awesome static stack, check out charge.