Hiderrisk is a library which allows you to obfuscate strings to keep sensitive information secure
npm install hiderrisk
import hiderrisk from 'hiderrisk';
//default use
const word = hiderrisk('word');
//output w*r*
//use of custom character
const word = hiderrisk('word', '%%');
//output w%%r%%
//use of setting percentage coverage of word
const word = hiderrisk('word', '%%', 100);
//output %%%%%%%%
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.