New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

string-masking

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-masking

to mask string

npmnpm
Version
1.1.1
Version published
Weekly downloads
62
-58.94%
Maintainers
1
Weekly downloads
 
Created
Source

To mask the string

const stringMasking = require ('string-masking')

let string = "1234567890"
let output = stringMasking(string,3)
console.log(output)

//output 
{ status: 'success', data: 'XXXXXXX890' }

const stringMasking = require ('string-masking')

let string = "1234567890"
let output = stringMasking(string,-3)
console.log(output)

//output 
{ status: 'success', data: '123XXXXXXX' }

const stringMasking = require ('string-masking')

let string = "123456789"
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 @ rohansolse@gmail.com.

Keywords

npm

FAQs

Package last updated on 12 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts