secundant / neodx

A collection of frontend-focused tools aimed at enhancing your development experience
MIT License
80 stars 6 forks source link

[Draft] `@neodx/log` - Add security features #94

Open secundant opened 1 year ago

secundant commented 1 year ago

Usage

import { createLogger } from '@neodx/log';
import { obfuscate } from '@neodx/log/security';

const logger = createLogger({
  transform: [
    obfuscate({
      paths: ['req.headers.authorization']
    })
  ]
});