{"id":19372117,"url":"https://github.com/nodenv/nodenv-vars","last_synced_at":"2025-04-23T16:31:55.826Z","repository":{"id":16169783,"uuid":"18916024","full_name":"nodenv/nodenv-vars","owner":"nodenv","description":"A nodenv plugin that safely sets global and per-project environment variables","archived":false,"fork":false,"pushed_at":"2019-01-16T17:31:15.000Z","size":34,"stargazers_count":18,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-09-25T06:38:41.601Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nodenv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-18T14:55:28.000Z","updated_at":"2023-12-12T13:36:34.000Z","dependencies_parsed_at":"2022-09-01T20:51:14.762Z","dependency_job_id":null,"html_url":"https://github.com/nodenv/nodenv-vars","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodenv%2Fnodenv-vars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodenv%2Fnodenv-vars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodenv%2Fnodenv-vars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodenv%2Fnodenv-vars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodenv","download_url":"https://codeload.github.com/nodenv/nodenv-vars/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223713438,"owners_count":17190499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T08:21:40.358Z","updated_at":"2024-11-10T08:21:41.025Z","avatar_url":"https://github.com/nodenv.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nodenv-vars\n\nThis is a plugin for [nodenv](https://github.com/nodenv/nodenv)\nthat lets you set global and project-specific environment variables\nbefore spawning Node processes.\n\n\u003c!-- toc --\u003e\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Credits](#credits)\n\n\u003c!-- tocstop --\u003e\n\n## Installation\n\nTo install nodenv-vars, clone this repository into your\n`$(nodenv root)/plugins` directory. (You'll need a recent version of nodenv\nthat supports plugin bundles.)\n\n    $ mkdir -p $(nodenv root)/plugins\n    $ cd $(nodenv root)/plugins\n    $ git clone https://github.com/nodenv/nodenv-vars.git\n\n## Usage\n\nDefine environment variables in an `.nodenv-vars` file in your project,\none variable per line, in the format `VAR=value`. For example:\n\n    HUBOT_CAMPFIRE_ACCOUNT=nodenv\n    HUBOT_CAMPFIRE_TOKEN=somerandomtoken\n    HUBOT_CAMPFIRE_ROOMS=some,campfire,rooms\n\nYou can perform variable substitution with the traditional `$`\nsyntax. For example, to append to `HUBOT_CAMPFIRE_ROOMS`:\n\n    HUBOT_CAMPFIRE_ROOMS=$HUBOT_CAMPFIRE_ROOMS:some,extra,rooms\n\nYou may also have conditional variable assignments, such that a\nvariable will **only** be set if it is not already defined or is blank:\n\n    USER_ID?=OiNutter\n\nIn the above case, `USER_ID` will only be set if `$USER_ID` is\ncurrently empty (i.e., if `[ -z \"$USER_ID\" ]` is true).\n\nSpaces are allowed in values; quoting is not necessary. Expansion and\ncommand substitution are not allowed. Lines beginning with `#` or any\nlines not in the format VAR=value will be ignored.\n\nVariables specified in the `$(nodenv root)/vars` file will be set\nfirst. Then variables specified in `.nodenv-vars` files in any parent\ndirectories of the current directory will be set. Variables from the\n`.nodenv-vars` file in the current directory are set last.\n\nUse the `nodenv vars` command to print all environment variables in the\norder they'll be set.\n\n## Credits\n\nForked from [Sam Stephenson](https://github.com/sstephenson)'s\n[rbenv-vars](https://github.com/rbenv/rbenv-vars) by [Will\nMcKenzie](https://github.com/oinutter) and modified for nodenv.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodenv%2Fnodenv-vars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodenv%2Fnodenv-vars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodenv%2Fnodenv-vars/lists"}