mask-text
v1.0.3
Published
Mask characters in a string
Downloads
96
Readme
mask-text
Mask string
Mask string values based on character index of the string.
npm module: https://www.npmjs.com/package/mask-text
import mask from 'mask-text'
const maskedMobile = mask('+94123456789', 2, 4, '*') // output > "+9***3456789"