【文件属性】:
文件名称:mem:便利包捆绑了levelup和memdown
文件大小:7KB
文件格式:ZIP
更新时间:2021-04-28 14:19:36
nodejs javascript level browser levelup
等级记忆
一个方便的包,包和并公开levelup对其出口。
使用此包,以避免必须明确安装memdown当你想使用memdown用levelup非持久性levelup的数据存储。
const level = require ( 'level-mem' )
// 1) Create our database, with optional options.
// This will create or open the underlying LevelDB store.
const db = level ( )
// 2) Put a key & value
db . put ( 'name' , 'Level' , function ( err ) {
if ( err ) return console . log ( 'Ooops!' , err ) // some kind
【文件预览】:
mem-master
----test.js(180B)
----package.json(1KB)
----UPGRADING.md(1KB)
----.github()
--------dependabot.yml(219B)
--------workflows()
----CONTRIBUTORS.md(1KB)
----level-mem.js(63B)
----LICENSE.md(1KB)
----.gitignore(26B)
----CHANGELOG.md(6KB)
----README.md(3KB)