level-static

1.1.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    0
    • latest

Version History

Package Sidebar

Install

npm i level-static

Weekly Downloads

11

Version

1.1.0

License

MIT

Last publish

Collaborators

  • nopersonsmodules