Tiny module for retrieving docker secrets as a JSON object, that expands keys with dots.like.this
npm install get-docker-secretsTiny module for retrieving docker secrets as a JSON object.
```
npm i get-docker-secrets
Example:
given directory structure
``
/run
/secrets
- thing.one
> HELLO
-thing.two
> WORLD
- FOO
> BAR
`
import { getDockerSecrets } from 'get-docker-secrets'
let secrets = getDockerSecrets()
/*
secrets = {
thing: {
one: 'HELLO',
two: 'WORLD'
},
FOO: 'BAR'
}
*/
``