Reads the content of a secrets file.
$ npm i @tadashi/docker-secrets
import process from 'node:process'
import readSecrets from '@tadashi/docker-secrets'
const {
PASSWD,
} = process.env
const password = await readSecrets(PASSWD)
Return the content of the secrets file as a string, or the original value if an error occurs.
- BTC: bc1q7famhuj5f25n6qvlm3sssnymk2qpxrfwpyq7g4
MIT © Thiago Lagden