Skip to content

photostructure/vscode-windows-registry

 
 

Repository files navigation

@photostructure/windows-registry

npm version Build

Fork of @vscode/windows-registry with prebuilt binaries.

The upstream package requires a C++ build toolchain at install time. This fork ships prebuilt NAPI binaries for win32-x64 and win32-arm64, so no build tools are needed on the target machine.

Native node module to access the Windows Registry.

Cross-platform support

This package installs cleanly on all platforms and architectures — no need for optionalDependencies. On non-Windows platforms, all functions return undefined (the same as when a registry key doesn't exist on Windows), so calling code doesn't need platform checks.

Installing

npm install @photostructure/windows-registry

Using

const { GetStringRegKey } = require('@photostructure/windows-registry');
console.log(GetStringRegKey('HKEY_LOCAL_MACHINE', 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion', 'ProgramFilesPath'));

Development

npm install
npm run build:native  # builds the prebuilt binary
npm test # builds if necessary, then runs tests

License

MIT

Upstream copyright Microsoft Corporation.

About

Native node module to access the Windows Registry

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C++ 50.9%
  • TypeScript 28.3%
  • JavaScript 11.2%
  • Python 9.6%