{"_id":"@ashqua/swarm-secret-env","name":"@ashqua/swarm-secret-env","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@ashqua/swarm-secret-env","version":"1.0.0","description":"a small utility to inject secrets into env","main":"index.js","type":"module","repository":{"type":"git","url":"git+https://github.com/ashqua-com/swarm-secret-env.git"},"keywords":["swarm"],"author":{"name":"@ashqua-com"},"license":"MIT","bugs":{"url":"https://github.com/ashqua-com/swarm-secret-env/issues"},"publishConfig":{"access":"public"},"homepage":"https://github.com/ashqua-com/swarm-secret-env#readme","dependencies":{"glob":"^11.0.3"},"_id":"@ashqua/swarm-secret-env@1.0.0","gitHead":"38a5f362c539c570bb7840d8280e75172d9dcf0a","types":"./index.d.ts","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-gV2faNDLu2GQFYlDsdaV2fvy6tMnMSyDPAFh+1AQpHsc+spplXo2f6cZyo1GgFv9NKylpJqLoP1E8fwxXNGqPQ==","shasum":"7a3f9cd8e4237af1fa8045bd3dfc1ea7181ee08f","tarball":"https://registry.npmjs.org/@ashqua/swarm-secret-env/-/swarm-secret-env-1.0.0.tgz","fileCount":5,"unpackedSize":3392,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDyIKjfBrAOjY8lW8Jl2R/trlXLFpuEUivpgk73d8RH9gIhAOqjTnVL5MKJv6ueYVhyoGHOjXGXtzUs1Xat1k/4hogV"}]},"_npmUser":{"name":"qweme32","email":"qweme32@gmail.com","actor":{"name":"qweme32","email":"qweme32@gmail.com","type":"user"}},"directories":{},"maintainers":[{"name":"qweme32","email":"qweme32@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/swarm-secret-env_1.0.0_1751672645433_0.9917763277242169"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-04T23:44:05.354Z","1.0.0":"2025-07-04T23:44:05.600Z","modified":"2025-07-04T23:44:05.943Z"},"maintainers":[{"name":"qweme32","email":"qweme32@gmail.com"}],"description":"a small utility to inject secrets into env","homepage":"https://github.com/ashqua-com/swarm-secret-env#readme","keywords":["swarm"],"repository":{"type":"git","url":"git+https://github.com/ashqua-com/swarm-secret-env.git"},"author":{"name":"@ashqua-com"},"bugs":{"url":"https://github.com/ashqua-com/swarm-secret-env/issues"},"license":"MIT","readme":"## Swarm-Secret-Env Helper lib\r\n\r\n### Setup\r\n```sh\r\nnpm install @ashqua/swarm-secret-env\r\n```\r\n\r\n```js\r\nimport injectSwarmSecrets from \"@ashqua/swarm-secret-env\"\r\n\r\ninjectSwarmSecrets();\r\n```\r\n\r\n### Example stack\r\n```sh\r\necho \"content\" | docker secret create ENV_TEST -\r\n```\r\n```yml\r\nversion: '3.8'\r\n\r\nservices:\r\n  app:\r\n    image: my-best-app:latest\r\n    environment:\r\n      - NODE_ENV=production # Need for trigger injector\r\n    secrets:\r\n      - ENV_TEST # Mapped as process.env.TEST\r\n      - ENV_TEST_2 # Mapped as process.env.TEST_2\r\n    # ...\r\n\r\nsecrets:\r\n  ENV_TEST:\r\n    external: true\r\n  ENV_TEST_2:\r\n    external: true\r\n```","readmeFilename":"README.md","_rev":"1-5237a34b17cb3e75fdaab16a9a906398"}