2.2.0 • Published 9 months ago

@aegenet/belt-hide-sensitive v2.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

npm version

@aegenet/belt-hide-sensitive

Hide Sensititve data from string

💾 Installation

yarn add @aegenet/belt-hide-sensitive@^2.0.0
# or
npm i @aegenet/belt-hide-sensitive@^2.0.0

📝 Usage

Example, small cli to hide passwords/secrets from environment variables in the console output.

// ./hide-out-cli.js

import { createHideSensitiveFunction } from '@aegenet/belt-hide-sensitive';

const hideFunction = createHideSensitiveFunction(process.env);

process.stdin.on('data', data => process.stdout.write(hideFunction(data.toString())));

Usage: ./somethingWithSensitive.sh 2>&1 /dev/null | node ./hide-out-cli

2.2.0

9 months ago

2.1.0

11 months ago

1.6.2

12 months ago

1.7.0

12 months ago

1.6.1

12 months ago

2.0.0

12 months ago

1.5.0

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.2

1 year ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago