{"id":42909711,"url":"https://github.com/tolu/iisnode-env","last_synced_at":"2026-01-30T16:55:34.285Z","repository":{"id":57271728,"uuid":"109977639","full_name":"tolu/iisnode-env","owner":"tolu","description":"Loads environment variables from appSettings in web.config.","archived":false,"fork":false,"pushed_at":"2017-11-09T17:19:31.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-01T12:27:44.778Z","etag":null,"topics":["appsettings","azure","environment-variables","iisnode","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tolu.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-11-08T13:12:22.000Z","updated_at":"2017-11-09T17:24:20.000Z","dependencies_parsed_at":"2022-09-09T01:23:06.012Z","dependency_job_id":null,"html_url":"https://github.com/tolu/iisnode-env","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tolu/iisnode-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolu%2Fiisnode-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolu%2Fiisnode-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolu%2Fiisnode-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolu%2Fiisnode-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tolu","download_url":"https://codeload.github.com/tolu/iisnode-env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolu%2Fiisnode-env/sbom","scorecard":{"id":891731,"data":{"date":"2025-08-11","repo":{"name":"github.com/tolu/iisnode-env","commit":"fb9ee737b16fd24f2dfaa78fdf364efc296b2d9e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/16 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":"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":"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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"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"}}]},"last_synced_at":"2025-08-24T12:06:13.680Z","repository_id":57271728,"created_at":"2025-08-24T12:06:13.680Z","updated_at":"2025-08-24T12:06:13.680Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28915941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T16:37:38.804Z","status":"ssl_error","status_checked_at":"2026-01-30T16:37:37.878Z","response_time":66,"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":["appsettings","azure","environment-variables","iisnode","nodejs"],"created_at":"2026-01-30T16:55:33.707Z","updated_at":"2026-01-30T16:55:34.276Z","avatar_url":"https://github.com/tolu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iisnode-env\n[![NPM version](https://img.shields.io/npm/v/iisnode-env.svg?style=flat-square)](https://www.npmjs.com/package/iisnode-env) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n`iisnode-env` is a zero-dependency module that loads environment variables from the `\u003cappSettings\u003e`-section of a `web.config` file into [`process.env`](https://nodejs.org/docs/latest/api/process.html#process_process_env). \nStoring configuration in the environment separate from code is based on [The Twelve-Factor App](http://12factor.net/config) methodology.\n\n\n\nWhen hosting a node app on [`iisnode`](https://github.com/tjanczuk/iisnode) (for instance in an [Azure WebApp](https://blogs.msdn.microsoft.com/hanuk/2012/05/04/top-benefits-of-running-node-js-on-windows-azure/)), `iisnode` automatically provides `appSettings` from `web.config` via `process.env`.\n\nAs such `iisnode-env` does nothing if `process.env.IISNODE_VERSION` is defined and aims only to simplify the move between running an app inside and outside of `iisnode`.\n\n## Install\n\n```bash\nnpm i -S iisnode-env\n```\n\n## Usage\nAs early as possible in your application, require and configure iisnode-env\n\n```js\nrequire('iisnode-env').config();\n\n// or use the alias\nrequire('iisnode-env').load();\n```\n\nThe module will do nothing if `process.env.IISNODE_VERSION` is defined.\nIn that case iisnode will have already loaded the variables.\n\n### Config\n\n*Alias*: load\n\n`config` will read your `web.config` file, parse the contents, assign it to `process.env` and return the loaded content or an `error` key if it failed.\n\n```js\nconst result = require('iisnode-env').config()\n\nif(result.error) {\n  throw result.error\n}\n\nconsole.log(result.parsed)\n```\n\nIf `process.env.IISNODE_VERSION` is defined, `config` returns an empty object.\n\nYou can additionally, pass options to `config`\n\n#### Options\n\n##### Path\n\nDefault: `web.config`\n\n```js\nrequire('iisnode-env').config({ path: '/custom/path/to/web.config' })\n```\n\n##### Encoding\n\nDefault: `utf8`\n\n```js\nrequire('iisnode-env').config({ encoding: 'base64' })\n```\n\n## Limits\n\nThis is i very simple module and as such there is no support (at this time) for doing this:\n```xml\n\u003cappSettings file=\"relative file name\"\u003e\n\u003c/appSettings\u003e\n```\nWe only get the values we find inside of the `\u003cappSettings\u003e`-section.\n\n## Credits\nInspired by and based on\n* https://github.com/motdotla/dotenv\n\n## License\n\nMIT: http://tolu.mit-license.org\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftolu%2Fiisnode-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftolu%2Fiisnode-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftolu%2Fiisnode-env/lists"}