{"id":17398464,"url":"https://github.com/vweevers/windows-env","last_synced_at":"2025-06-27T19:34:50.854Z","repository":{"id":57141357,"uuid":"53731284","full_name":"vweevers/windows-env","owner":"vweevers","description":"Normalized environment variables for Windows XP and up","archived":false,"fork":false,"pushed_at":"2016-03-12T16:38:15.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T21:39:08.093Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/vweevers.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":"2016-03-12T12:47:21.000Z","updated_at":"2019-05-10T02:56:02.000Z","dependencies_parsed_at":"2022-09-05T18:31:44.278Z","dependency_job_id":null,"html_url":"https://github.com/vweevers/windows-env","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/vweevers%2Fwindows-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Fwindows-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Fwindows-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Fwindows-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vweevers","download_url":"https://codeload.github.com/vweevers/windows-env/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246237436,"owners_count":20745348,"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-10-16T14:56:56.008Z","updated_at":"2025-03-29T20:15:36.171Z","avatar_url":"https://github.com/vweevers.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# windows-env\r\n\r\n**Normalized environment variables for Windows XP and up.**\r\n\r\n[![npm status](http://img.shields.io/npm/v/windows-env.svg?style=flat-square)](https://www.npmjs.org/package/windows-env) [![Build status](https://img.shields.io/appveyor/ci/vweevers/windows-env.svg?style=flat-square)](https://ci.appveyor.com/project/vweevers/windows-env) [![Dependency status](https://img.shields.io/david/vweevers/windows-env.svg?style=flat-square)](https://david-dm.org/vweevers/windows-env)\r\n\r\n## example\r\n\r\n```js\r\nconst env = require('windows-env')\r\n\r\nconsole.log('32-bit Program Files: %s', env.PROGRAMFILES_X86)\r\n\r\n// This is true even if you run it with 32-bit Node.js\r\nif (env.X64) {\r\n  console.log('64-bit Program Files: %s', env.PROGRAMFILES_X64)\r\n}\r\n```\r\n\r\n## exports\r\n\r\nAll of `process.env` uppercased, and:\r\n\r\n- `PROGRAMFILES_X86`: `C:\\Program Files (x86)` on 64 bit Windows, else `C:\\Program Files`\r\n- `PROGRAMFILES_X64`: `C:\\Program Files` on 64 bit Windows, else undefined\r\n- `USERPROFILE`: `USERPROFILE` or `HOMEDRIVE` + `HOMEPATH`\r\n- `LOCALAPPDATA`: this is usually `USERPROFILE\\AppData\\Local`, falls back to `USERPROFILE\\Local Settings\\Application Data` for Windows XP\r\n- `X64`: true on 64 bit Windows, regardless of node's bitness\r\n\r\n## install\r\n\r\nWith [npm](https://npmjs.org) do:\r\n\r\n```\r\nnpm install windows-env\r\n```\r\n\r\n## license\r\n\r\n[MIT](http://opensource.org/licenses/MIT) © Vincent Weevers\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvweevers%2Fwindows-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvweevers%2Fwindows-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvweevers%2Fwindows-env/lists"}