Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 283 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 283 Bytes

remap

Replace each character of a string using a map

const remap = require('remap')

var chars = { f: 't', b: 'f' }
var value = 'foo bar'

console.log(remap(chars)(value)) // -> too far

Installation

npm install --save baggo/remap

License

MIT