sublevel-prefixer

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i sublevel-prefixer

Weekly Downloads

4

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mafintosh