Skip to content
/ remap Public

Replace each character of a string using a map

License

Notifications You must be signed in to change notification settings

baggo/remap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Replace each character of a string using a map

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published