This NPM module loads Docker secrets from the /run/secrets
directory created by Docker Swarm into a JS object for use within Node.js applications.
npm install docker-secrets
const secrets = require('docker-secrets');
cosnole.log(secrets);
Converts Docker Secrets mounted into a container to an object.
JavaScript