dotenv
约 1 分钟阅读
- dotenv
- direnv
- NodeJS/JS
- motdotla/dotenvGitHubmotdotla/dotenvdirenv · NodeJS/JS · motdotla/dotenv · npm:dotenv · dotenvx/dotenvx · - · kerimdzhanov/dotenv-flow · env tpl · envsubst · from gnu gettext笔记:dotenv
- dotenvx/dotenvxGitHubdotenvx/dotenvxdirenv · NodeJS/JS · motdotla/dotenv · npm:dotenv · dotenvx/dotenvx · - · kerimdzhanov/dotenv-flow · env tpl · envsubst · from gnu gettext笔记:dotenv
npx -y dotenvx run -- node index.js
- kerimdzhanov/dotenv-flowGitHubkerimdzhanov/dotenv-flowdirenv · NodeJS/JS · motdotla/dotenv · npm:dotenv · dotenvx/dotenvx · - · kerimdzhanov/dotenv-flow · env tpl · envsubst · from gnu gettext笔记:dotenv
- env tpl
- envsubst
- from gnu gettext
${key},$key
- hairyhenderson/gomplateGitHubhairyhenderson/gomplatehairyhenderson/gomplate - 支持数据源的命令行模板 · MIT, Go · 来源支持 JSON, EJSON, YAML, AWS EC2 metadata, Consul, Vault · binary 约 80MB笔记:gomplate
- Go
- kreuzwerker/envplateGitHubkreuzwerker/envplate
- MIT, Go
${key}${key:-default value}
- stephenc/envsubGitHubstephenc/envsub
- Rust
- a8m/envsubstGitHuba8m/envsubst
- Go
- danday74/envsubGitHubdanday74/envsub
- NodeJS
- envsubst
- 通常覆盖逻辑 .env, .env.local, .env.development, .env.development.local
local不提交到仓库
- 通常提供
.env.example - 参考
# 多行
PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----"npx @dotenvx/dotenvx run -f .env.frpc.local -- frpc -c frpc.yaml
npm add -g @dotenvx/dotenvx
dotenvx run -- node index.js依赖包@dotenvx/dotenvxnpm 包@dotenvx/dotenvxNPM
.env
- key -
[a-zA-Z_]+[a-zA-Z0-9_]* - .env.ci
- .env.production
- .env.vault
- DOTENV_VAULT
- .env.me
- .env.keys
- DOTENV_PRIVATE_KEY, DOTENV_PRIVATE_KEY_PRODUCTION, DOTENV_PRIVATE_KEY_CI
- DOTENV_PUBLIC_KEY_PRODUCTION
HELLO="encrypted:"表示加密内容- dotenv 密钥信息
- 参考
- www.dotenv.org/docs/security/env链接www.dotenv.org/docs/security/envdirenv · NodeJS/JS · motdotla/dotenv · npm:dotenv · dotenvx/dotenvx · - · kerimdzhanov/dotenv-flow · env tpl · envsubst · from gnu gettext笔记:dotenv
关联信息
反向链接、本文链接的其他页面和外部资料。
参考资料
GitHub8 条
- a8m/envsubstgithub.com/a8m/envsubst
- danday74/envsubgithub.com/danday74/envsub
- dotenvx/dotenvxgithub.com/dotenvx/dotenvx
- hairyhenderson/gomplategithub.com/hairyhenderson/gomplate
- kerimdzhanov/dotenv-flowgithub.com/kerimdzhanov/dotenv-flow
- kreuzwerker/envplategithub.com/kreuzwerker/envplate
- motdotla/dotenvgithub.com/motdotla/dotenv
- stephenc/envsubgithub.com/stephenc/envsub
依赖包1 条
- dotenvnpmjs.com/package/dotenv
其他外链3 条
- www.dotenv.orgwww.dotenv.org/
- www.dotenv.org/docs/security/envwww.dotenv.org/docs/security/env
- www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.htmlwww.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html