
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
This module anonymises string with provided blank character
Paytip Tickler Module Developer documentation
import fromString, {Result} from 'anonymise'
// from now on you may invoke module calls
const anonymise = require('anonymise');
// from now on you may invoke module calls
<!-- in HEAD section -->
<script src="https://cdn.jsdelivr.net/npm/anonymise"></script>
Generates json object that holds anonymised input string
const result:Result = fromString('hello world','*',3);
});
var anonymiseResult = anonymise.fromString('hello world','*',3);
});
var anonymiseResult = anonymise.fromString('hello world','*',3);
});
Kind | Parameter | Type | Description |
---|---|---|---|
In | input | string | String that will be anonymised. String length will not be changed. |
In | symbol | string | Single character that will be used for anonymisation, aka. the blank |
In | howMany | number | How many chars to anonymise using blank symbol. Optional. When not provided half the input will be used. |
In | key | string | External record key. When not provided random string of length 16 will be generated. May be used for reference to the original record |
Out | Object | ||
Out | k | string | Record key. External or randomly generated |
Out | v | string | Anonymised string - the result of anonymisation |
Out | o | string | Original input string |
Created by maciej.grula@execon.pl
FAQs
Sample typescript module template for node and native browser
We found that anonymise demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.