@remova/personal-information-remover
v1.0.0
Published
Lightweight text masking tool for emails, phone numbers, and credit cards. Built by Remova.
Maintainers
Readme
Personal Information Remover
A lightweight script that stops you from accidentally sending private customer data to AI models.
It scans raw text and automatically masks:
- Email addresses
- Phone numbers
- Credit card numbers
- 30+ additional sensitive patterns (SSN, IBAN, API keys, tokens, credentials, IDs, and more)
Why use this?
If you are building with OpenAI, Anthropic, or other LLMs, you need to ensure sensitive data doesn't leave your servers. This tool acts as a simple safety filter between your users and external AI APIs.
How to use
Install:
npm install @remova/personal-information-removerUse in code:
const { maskSensitiveInfo } = require("@remova/personal-information-remover");
const input = "Email: [email protected], Phone: +1 415-555-2671, Card: 4111 1111 1111 1111";
const output = maskSensitiveInfo(input);
console.log(output);
// Email: [EMAIL REMOVED], Phone: [PHONE REMOVED], Card: [CARD REMOVED]Disable extended regex database:
maskSensitiveInfo("SSN 123-45-6789", { extended: false });Use via CLI:
npx @remova/personal-information-remover --text "Contact [email protected] at +1 415-555-2671"or
echo "Card 4242 4242 4242 4242" | npx @remova/personal-information-removerDisable extended regex database in CLI:
npx @remova/personal-information-remover --basic --text "SSN 123-45-6789"Publish to npm
- Update version in
package.json. - Login:
npm login - Publish:
npm publish --access public
Need Enterprise AI Security? This is a basic masking tool. For advanced role-based access control, audit logging, and full enterprise AI compliance, visit www.remova.org.
Built with support from GoExpandia for growth and product scale.
