Developer adds dependency-free PII redaction to open-source TypeScript text utility
A developer has added a PII redaction feature called 'redact' to textConvert, a lightweight TypeScript text-utility library they maintain. The new function scans free-form text and automatically masks emails and phone numbers in place, leaving all other content untouched. It is built by composing two existing library functions — 'extractEmails' and 'maskText' — and supports options to target specific data types or customize the masking character. The developer created the tool to fill a gap between heavyweight NLP-based PII detectors and paid APIs, offering a simpler solution for smaller projects. The library is MIT-licensed, has zero runtime dependencies, and is available on npm, with the maintainer welcoming feedback and contributions on GitHub.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.



Discussion (0)
Log in to join the discussion and vote.
Log in