简单的键值存储库 node-mkv
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/monk3yk1n9/mkv
- 软件文档: https://github.com/monk3yk1n9/mkv
- 官方下载: https://www.npmjs.com/package/mkv
软件介绍
简单的键值存储库
下载安装
~ npm install --save[-dev] mkv # or ~ yarn add [--dev] mkv
API
mkv.set(key:string, value:any, readonly:boolean = false)
import mkv from "mkv"
mkv.set("hello", "hello world") // string
// -> hello world
mkv.set("options", { a: 1, b: 2, c: 3}) // object
// -> { a: 1, b: 2, c: 3})
// set readonly data.
mkv.set("readonly", 1, true);
// -> 1
mkv.set("readonly", 2)
// throw TypeErrormkv.get(key:string)
// in other files.
import mkv from "mkv"
mkv.get("hello")
// -> hello world
mkv.get("options")
// -> {a: 1, b: 2, c: 3}mkv.has(key:string)
// in other files.
import mkv from "mkv"
mkv.has("hello")
// -> true
mkv.get("hello2")
// -> falsemkv.delete(key:string)
// in other files.
import mkv from "mkv"
mkv.delete("hello")
// -> true
mkv.get("hello")
// -> undefined
Don't Make Me Think
Steve Krug / New Riders Press / 18 August, 2005 / $35.00
Five years and more than 100,000 copies after it was first published, it's hard to imagine anyone working in Web design who hasn't read Steve Krug's "instant classic" on Web usability, but people are ......一起来看看 《Don't Make Me Think》 这本书的介绍吧!
