levelweb:通过 http 或 https 的 LevelDB

时间:2021-07-01 00:27:52
【文件属性】:
文件名称:levelweb:通过 http 或 https 的 LevelDB
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-01 00:27:52
JavaScript 概要 Leveldb 通过http或https 。 用法 var http = require ( 'http' ) ; var levelweb = require ( 'levelweb' ) ; var db = require ( 'level' ) ( './db' ) ; var opts = { prefix : '/' } ; // // like this... // http . createServer ( levelweb ( db , opts ) ) . listen ( 8080 ) ; // // or like this... since the levelweb() function just // returns a function that accepts request and response // streams. // var leve
【文件预览】:
levelweb-master
----index.js(3KB)
----test.js(5KB)
----package.json(665B)
----.gitignore(57B)
----README.md(978B)

网友评论