@tadashi/docker-secrets
v1.1.0
Published
Reads the content of a secrets file.
Downloads
5
Readme
docker-secrets
Reads the content of a secrets file.
Install
$ npm i @tadashi/docker-secrets
Usage
import process from 'node:process'
import readSecrets from '@tadashi/docker-secrets'
const {
PASSWD,
} = process.env
const password = await readSecrets(PASSWD)
API
readSecrets(value: string | URL): Promise
Return the content of the secrets file as a string, or the original value if an error occurs.
Donate ❤️
- BTC: bc1q7famhuj5f25n6qvlm3sssnymk2qpxrfwpyq7g4
License
MIT © Thiago Lagden