string-masking
v1.1.6
Published
to mask string
Downloads
506
Maintainers
Readme
To mask the string
const stringMasking = require ('string-masking')
let string = "1234567890"
let output = stringMasking(string,3)
console.log(output)
//output
{ status: 'success', response: 'XXXXXXX890' }
const stringMasking = require ('string-masking')
let string = "1234567890"
let output = stringMasking(string,-3)
console.log(output)
//output
{ status: 'success', response: '123XXXXXXX' }
const stringMasking = require ('string-masking')
let string = "1234567890"
let output = stringMasking(string,0)
console.log(output)
//output
{ status: 'success', response: '12XXXXXX90' }
Contribution
Rohan Solse
All suggestions and recommendations are more than welcome.
You can get in contact with me @ [email protected].