All Projects → cnlon → fuck-env

cnlon / fuck-env

Licence: MIT license
Fuck environment variables everywhere

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to fuck-env

envsafe
🔒 Makes sure you don't accidentally deploy apps with missing or invalid environment variables.
Stars: ✭ 705 (+4935.71%)
Mutual labels:  environment-variables, env
read-env
🔧 Transform environment variables into JSON object with sanitized values.
Stars: ✭ 60 (+328.57%)
Mutual labels:  environment-variables, env
tfenv
Transform environment variables for use with Terraform (e.g. `HOSTNAME` ⇨ `TF_VAR_hostname`)
Stars: ✭ 120 (+757.14%)
Mutual labels:  environment-variables, env
Node Convict
Featureful configuration management library for Node.js
Stars: ✭ 1,855 (+13150%)
Mutual labels:  environment-variables, env
envset
Set env vars before running your program, manage environment and secrets.
Stars: ✭ 34 (+142.86%)
Mutual labels:  environment-variables, env
dotenvy
Speed up your production sites by ditching .env for key/value variable pairs as Apache, Nginx, and shell equivalents
Stars: ✭ 31 (+121.43%)
Mutual labels:  environment-variables, env
webpack-dotenv-plugin
Use dotenv with webpack.
Stars: ✭ 53 (+278.57%)
Mutual labels:  environment-variables, env
env
A lightweight package for loading OS environment variables into structs for Go projects
Stars: ✭ 24 (+71.43%)
Mutual labels:  environment-variables, env
envman
Manage your .env configuration easily
Stars: ✭ 20 (+42.86%)
Mutual labels:  environment-variables, env
checkdotenv
Verify environment variables presence for Node JS.
Stars: ✭ 12 (-14.29%)
Mutual labels:  environment-variables, env
vite-plugin-environment
Easily expose environment variables in Vite.js
Stars: ✭ 57 (+307.14%)
Mutual labels:  environment-variables, env
exenv
Exenv makes loading environment variables from external sources easy.
Stars: ✭ 35 (+150%)
Mutual labels:  environment-variables, env
envfile
Parse and write environment files with Node.js
Stars: ✭ 42 (+200%)
Mutual labels:  environment-variables, env
ini
📝 Go INI config management. support multi file load, data override merge. parse ENV variable, parse variable reference. Dotenv file parse and loader. INI配置读取管理,支持多文件加载,数据覆盖合并, 解析ENV变量, 解析变量引用。DotEnv 解析加载
Stars: ✭ 72 (+414.29%)
Mutual labels:  environment-variables, env
gatsby-plugin-dynamic-routes
Creating dynamic routes based on your environment and/or renaming existing routes
Stars: ✭ 14 (+0%)
Mutual labels:  environment-variables, env
envclasses
envclasses is a library to map fields on dataclass object to environment variables.
Stars: ✭ 26 (+85.71%)
Mutual labels:  environment-variables, env
ts-dotenv
Strongly-typed environment variables for Node.js
Stars: ✭ 18 (+28.57%)
Mutual labels:  environment-variables, env
sicher
Sicher is a go module that allows secure storage of encrypted credentials in a version control system.
Stars: ✭ 27 (+92.86%)
Mutual labels:  environment-variables, env
envyable
The simplest yaml to ENV config loader.
Stars: ✭ 78 (+457.14%)
Mutual labels:  environment-variables, env
env-dot-prop
♻️ Get, set, or delete nested properties of process.env using a dot path
Stars: ✭ 31 (+121.43%)
Mutual labels:  environment-variables, env

fuck-env

npm version node version Build Status js-standard-style

fuck-env 用于跨平台设置和持久化脚本环境变量,支持 .env 类型文件和 package.json 的 config 字段

为什么创建 fuck-env?

请见:如何更好的管理前端环境变量 已失效

安装

npm install fuck-env

示例

如有一个包含 package.json 和 main.js 两个文件的项目,文件代码如下:

package.json

{
  "name": "fuck-env-demo",
  "config": {
    "USER": "lon",
    "REPO": "fuck-env"
  },
  "scripts": {
    "start": "fuck-env USER=cnlon node main.js"
  },
  "dependencies": {
    "fuck-env": "*"
  }
}

main.js

const {USER, REPO} = process.env
console.log(`https://github.com/${USER}/${REPO}`)

执行 npm start 后,输出 https://github.com/cnlon/fuck-env,不论是在 Windows 还是 POSIX(macOS、Linux 等)系统中都可以正常工作。

更多示例


MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].