Welcome to Express Maskerize! π This middleware helps you effortlessly mask sensitive data like emails, phone numbers, IP addresses, and dates in your Express.js responses. Keep your logs clean and your users' data secure with just a few lines of code.
-
Email Masking: Protects email addresses in your data.
john.doe@example.com β‘οΈ [email protected]
-
Phone Number Masking: Masks phone numbers to maintain privacy.
+1 (555) 555-5555 β‘οΈ [phone protected]
-
IP Address Masking: Safeguards IP addresses in your data.
192.168.1.1 β‘οΈ [ip protected]
-
Automatic Field Detection: Masks sensitive data without requiring any manual configuration.
Integrate Express Maskerize into your Express.js application:
const express = require('express');
const maskerize = require('./maskerize');
const app = express();
app.use(maskerize);
app.get('/data', (req, res) => {
const data = {
email: '[email protected]',
phone: '+1 (555) 555-5555',
ip: '192.168.1.1',
createdAt: '2024-08-08T10:00:00Z'
};
res.json(data);
});
app.listen(3000, () => {
console.log('Server is running on port 3000');
});
π Thank you for using Express Maskerize! Keep your users' data safe and secure!