Skip to content

dominictarr/level-static

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

level-static

use leveldb as a static file server.

var static  = require('level-static')
var http    = require('http')
var levelup = require('levelup')

var db = levelup('/tmp/level-static')

http.createServer(static(db)).listen(8000)

Will serve index.html if you give a path that ends in a /.

sets mime type and content length.

Of course, can also be used with sublevel

and as an express middleware.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published