Skip to content

Jesutofunmi2/string-masker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

string-masker

A lightweight utility to mask parts of strings. Useful for hiding sensitive parts of emails, phone numbers, etc.

Installation

npm install string-masker

    ---

import { mask } from 'string-masker';

console.log(mask("helloWorld", "*", 4)); 
// ****World

console.log(mask("1234567890", "#", 4, false)); 
// 123456####

About

A simple utility to mask parts of strings for privacy or formatting.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published