1.0.10 • Published 3 years ago

anonymise v1.0.10

Weekly downloads
30
License
MIT
Repository
-
Last release
3 years ago

String anonymisation library

This module anonymises string with provided blank character

Table of contents

General info

Paytip Tickler Module Developer documentation

Documentation

Initialise

Node Typescript

import fromString, {Result} from 'anonymise'
// from now on you may invoke module calls

Node Javascript

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

Browser

<!-- in HEAD section -->
<script src="https://cdn.jsdelivr.net/npm/anonymise"></script>

fromString(input, symbol, howMany, key)

Generates json object that holds anonymised input string

Node Typescript

const result:Result = fromString('hello world','*',3);
});

Node Javascript

var anonymiseResult = anonymise.fromString('hello world','*',3);
});

Browser

var anonymiseResult = anonymise.fromString('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

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago