Skip to content

mafintosh/sublevel-prefixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Prefix a key with a sublevel prefix

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published