文件名称:level-json:LevelDB JSON包装器
文件大小:3KB
文件格式:ZIP
更新时间:2024-05-27 21:20:49
JavaScript
级别json LevelDB包装器可避免仅对JSON重复编码字段 安装 $ npm install level-json 使用范例 var io = require ( 'level-json' ) ( './db' ) io . set ( 'foo' , { foo : 123 , bar : 456 } , function ( error ) { if ( error ) throw error io . get ( 'foo' , function ( error , foo ) { if ( error ) throw error foo // => { foo: 123, bar: 456 } } ) } ) 原料药 使用目录路径调用level-json以建立新的LevelDB连接: var io = require ( 'level-
【文件预览】:
level-json-master
----.gitignore(34B)
----package.json(555B)
----.travis.yml(36B)
----index.js(3KB)
----test.js(2KB)
----README.md(1KB)
----.npmignore(37B)