Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 1.8 KB

README.md

File metadata and controls

64 lines (43 loc) · 1.8 KB

🛡️ Express Maskerize: Protect Sensitive Data in Your Express.js Responses

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.

image

🚀 Features

  • 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.

🔧 Usage

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: 'john.doe@example.com',
        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');
});

🎨 Screenshots

image

image

image


👋 Thank you for using Express Maskerize! Keep your users' data safe and secure!