@aegenet/belt-hide-sensitive
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

npm version

@aegenet/belt-hide-sensitive

Hide Sensititve data from string

💾 Installation

yarn add @aegenet/belt-hide-sensitive@^1.4.0
# or
npm i @aegenet/belt-hide-sensitive@^1.4.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

Package Sidebar

Install

npm i @aegenet/belt-hide-sensitive

Weekly Downloads

1

Version

1.5.0

License

MIT

Unpacked Size

4.5 kB

Total Files

7

Last publish

Collaborators

  • agenet