Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/debitoor/secure-log-data
filters sensitive properties from log objects for security purposes
https://github.com/debitoor/secure-log-data
Last synced: 12 days ago
JSON representation
filters sensitive properties from log objects for security purposes
- Host: GitHub
- URL: https://github.com/debitoor/secure-log-data
- Owner: debitoor
- Created: 2017-01-20T13:04:58.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-04-26T12:44:57.000Z (over 2 years ago)
- Last Synced: 2024-04-14T12:14:29.263Z (7 months ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 0
- Watchers: 24
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
#secure-log-data [![npm version](https://badge.fury.io/js/%40debitoor%2Fsecure-log-data.svg)](https://badge.fury.io/js/%40debitoor%2Fsecure-log-data) [![Build Status](https://travis-ci.org/debitoor/secure-log-data.svg?branch=master)](https://travis-ci.org/debitoor/secure-log-data) [![Coverage Status](https://coveralls.io/repos/github/debitoor/secure-log-data/badge.svg?branch=master)](https://coveralls.io/github/debitoor/secure-log-data?branch=master) [![NSP Status](https://nodesecurity.io/orgs/debitoor/projects/9bc3c7f9-14fe-4040-9c15-3cb8715e7007/badge)](https://nodesecurity.io/orgs/debitoor/projects/9bc3c7f9-14fe-4040-9c15-3cb8715e7007)
Module for securing sensitive data from log objects.##Installation
`npm i -S -E @debitoor/secure-log-data`
##Usage
```javascript
const secureLogData = require('@debitoor/secure-log-data');
const options = {sensitiveKeys: ['array', 'of', 'custom', 'sensitive', 'keys']}
const securedData = secureLogData(logObject, options);```