{"id":29585927,"url":"https://github.com/cuarti/zenox-env","last_synced_at":"2026-04-16T18:07:29.589Z","repository":{"id":57146594,"uuid":"85444913","full_name":"cuarti/zenox-env","owner":"cuarti","description":"Zenox Framework - Manage environment variables and load it from file","archived":false,"fork":false,"pushed_at":"2017-07-20T19:07:17.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T00:45:15.606Z","etag":null,"topics":["config","env","environment","javascript","nodejs","typescript","zenox","zenox-framework"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/cuarti.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":"2017-03-19T02:10:18.000Z","updated_at":"2017-05-10T20:31:04.000Z","dependencies_parsed_at":"2022-09-05T15:50:27.776Z","dependency_job_id":null,"html_url":"https://github.com/cuarti/zenox-env","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cuarti/zenox-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuarti%2Fzenox-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuarti%2Fzenox-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuarti%2Fzenox-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuarti%2Fzenox-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuarti","download_url":"https://codeload.github.com/cuarti/zenox-env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuarti%2Fzenox-env/sbom","scorecard":{"id":312120,"data":{"date":"2025-08-11","repo":{"name":"github.com/cuarti/zenox-env","commit":"0af770b2b17c2f3f560ab788fb62c7a182731a7a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"11 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-qh2h-chj9-jffq","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-w9mr-4mfr-499f","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T23:21:03.231Z","repository_id":57146594,"created_at":"2025-08-17T23:21:03.232Z","updated_at":"2025-08-17T23:21:03.232Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31897922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T17:33:00.867Z","status":"ssl_error","status_checked_at":"2026-04-16T17:32:57.401Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["config","env","environment","javascript","nodejs","typescript","zenox","zenox-framework"],"created_at":"2025-07-20T02:38:38.602Z","updated_at":"2026-04-16T18:07:29.545Z","avatar_url":"https://github.com/cuarti.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n@zenox/rcfile\n==\n\n[![Build Status](https://travis-ci.org/cuarti/zenox-env.svg?branch=master)](https://travis-ci.org/cuarti/zenox-env)\n[![npm (scoped)](https://img.shields.io/npm/v/@zenox/env.svg)](https://www.npmjs.com/package/@zenox/env)\n[![license](https://img.shields.io/github/license/cuarti/zenox-env.svg)](https://github.com/cuarti/zenox-env/blob/master/LICENSE)\n\n\n## Description\n\nManage environment variables and load it from file. Part of Zenox Framework\n\n#### File example\n\n```bash\n# Comment\nNAME=rcfile\nVERSION=1\nWORKS=true\n```\n\n\n## Installation\nThe usage of the module not depend of Zenox framework and can use it in your NodeJS program.\n\n```bash\nnpm install --save @zenox/env\n```\n\n\n## Documentation\n\n*All the examples are in ES6/ES2015 of Javascript and Typescript.\nTo use all the features of Typescript, you can use the generic param\non load function.*\n\n### get\n\nGet value from environment variables.\n\n#### Typescript definition\n```typescript\ndeclare function get(name: string): any;\n```\n\n#### Example\n```typescript\nimport {get} from '@zenox/env';\n\nlet data = env.get('EXAMPLE');\n```\n\n### getString\n\nGet value as string from environment variables.\n\n#### Typescript definition\n```typescript\ndeclare function getString(name: string): string;\n```\n\n#### Example\n```typescript\nimport {getString} from '@zenox/env';\n\nlet data = env.getString('EXAMPLE');\n```\n\n### getInt\n\nGet value as number (integer) from environment variables.\n\n#### Typescript definition\n```typescript\ndeclare function getInt(name: string): number;\n```\n\n#### Example\n```typescript\nimport {getInt} from '@zenox/env';\n\nlet data = env.getInt('EXAMPLE');\n```\n\n### getFloat\n\nGet value as number (float) from environment variables.\n\n#### Typescript definition\n```typescript\ndeclare function getFloat(name: string): number;\n```\n\n#### Example\n```typescript\nimport {getFloat} from '@zenox/env';\n\nlet data = env.getFloat('EXAMPLE');\n```\n\n### getBoolean\n\nGet value as boolean from environment variables.\n\n#### Typescript definition\n```typescript\ndeclare function getBoolean(name: string): boolean;\n```\n\n#### Example\n```typescript\nimport {getBoolean} from '@zenox/env';\n\nlet data = env.getBoolean('EXAMPLE');\n```\n\n### exists\n\nGet if exists environment variable.\n\n#### Typescript definition\n```typescript\ndeclare function exists(name: string): boolean;\n```\n\n#### Example\n```typescript\nimport {exists} from '@zenox/env';\n\nlet exists = env.exists('EXAMPLE');\n```\n\n### existsString\n\nGet if exists environment variable and is string.\n\n#### Typescript definition\n```typescript\ndeclare function existsString(name: string): boolean;\n```\n\n#### Example\n```typescript\nimport {existsString} from '@zenox/env';\n\nlet exists = env.existsString('EXAMPLE');\n```\n\n### existsInt\n\nGet if exists environment variable and is number (integer).\n\n#### Typescript definition\n```typescript\ndeclare function existsInt(name: string): boolean;\n```\n\n#### Example\n```typescript\nimport {existsInt} from '@zenox/env';\n\nlet exists = env.existsInt('EXAMPLE');\n```\n\n### existsFloat\n\nGet if exists environment variable and is number (float).\n\n#### Typescript definition\n```typescript\ndeclare function existsFloat(name: string): boolean;\n```\n\n#### Example\n```typescript\nimport {existsFloat} from '@zenox/env';\n\nlet exists = env.existsFloat('EXAMPLE');\n```\n\n### existsBoolean\n\nGet if exists environment variable and is boolean.\n\n#### Typescript definition\n```typescript\ndeclare function existsBoolean(name: string): boolean;\n```\n\n#### Example\n```typescript\nimport {existsBoolean} from '@zenox/env';\n\nlet exists = env.existsBoolean('EXAMPLE');\n```\n\n### add\n\nAdd value to environment variables.\n\n#### Typescript definition\n```typescript\ndeclare function add(name: string, value: any): void;\n```\n\n#### Example\n```typescript\nimport {add} from '@zenox/env';\n\nadd('EXAMPLE', 'FOO');\n```\n\n### remove\n\nRemove value from environment variables.\n\n#### Typescript definition\n```typescript\ndeclare function remove(name: string): void;\n```\n\n#### Example\n```typescript\nimport {remove} from '@zenox/env';\n\nremove('EXAMPLE');\n```\n\n### load\n\nLoad file and set values to environment variables.\nImporting package, it tries to load .envrc file.\n\n#### Typescript definition\n```typescript\ndeclare function load(file: string = '.envrc', encoding: string = 'utf8'): Promise\u003cvoid\u003e;\n```\n\n#### Example\n```typescript\nimport {load} from '@zenox/env';\n\nload('.examplerc', 'utf8').then(() =\u003e {\n    ...\n});\n```\n\n\n## License\n\nThe source code of the current repository are launched with MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuarti%2Fzenox-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuarti%2Fzenox-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuarti%2Fzenox-env/lists"}