jprichardson / string.js

Extra JavaScript string methods.
http://stringjs.com
1.81k stars 234 forks source link

Added mask method #187

Open prappo opened 8 years ago

prappo commented 8 years ago

use

S('secret').mask(2) // se S('secret').mask(-2) // et S('secret').mask(2, '!') // se!!!! according to this issue => https://github.com/jprichardson/string.js/issues/172

az7arul commented 8 years ago

@prappo can you add tests for this ?