JSPM

sublevel-prefixer

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q57211F
  • License MIT

Prefix a key with a sublevel prefix

Package Exports

  • sublevel-prefixer

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sublevel-prefixer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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