Socket
Book a DemoInstallSign in
Socket

anonymise

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anonymise

Anonymise strings using provided blank

npmnpm
Version
1.0.3
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

String anonymisation library

This module anonymises string with provided blank character

Table of contents

  • General info
  • Documentation
  • Contact

General info

Paytip Tickler Module Developer documentation

Documentation

Initialise

const anonymise = require('anonymise');
// from now on you may invoke module calls

anonymise(input, symbol, howMany, key)

Generates json object that holds anonymised input string

var anonymiseResult = anonymise('hello world','*',3);
});
KindParameterTypeDescription
IninputstringString that will be anonymised. String length will not be changed.
InsymbolstringSingle character that will be used for anonymisation, aka. the blank
InhowManynumberHow many chars to anonymise using blank symbol. Optional. When not provided half the input will be used.
InkeystringExternal record key. When not provided random string of length 16 will be generated. May be used for reference to the original record
OutObject
OutkstringRecord key. External or randomly generated
OutvstringAnonymised string - the result of anonymisation
OutostringOriginal input string

Contact

Created by maciej.grula@execon.pl

Keywords

anonymise

FAQs

Package last updated on 13 Jan 2021

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