1.0.0 • Published 9 years ago

sublevel-prefixer v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

sublevel-prefixer

Prefix a key with a sublevel prefix

npm install sublevel-prefixer

build status

Usage

var prefixer = require('sublevel-prefixer')
var prefix = prefixer('!') // use '!' as the separator

// using string keys
console.log(prefix('my-prefix', 'my-key')) // !my-prefix!my-key

// using binary keys
console.log(prefix('my-prefix', new Buffer('my-key'))) // returns above as a buffer

License

MIT