JSPM

@cloudreach/docker-secrets

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 335
  • Score
    100M100P100Q95408F
  • License Apache-2.0

Converts Docker Secrets mounted into a container to an object.

Package Exports

  • @cloudreach/docker-secrets

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cloudreach/docker-secrets) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Docker Secrets

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.

Installation

npm install @cloudreach/docker-secrets

Usage

const secrets = require('@cloudreach/docker-secrets');
console.log(secrets);