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 @cloudreach/docker-secrets
const secrets = require('@cloudreach/docker-secrets');
console.log(secrets);