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-x64andwin32-arm64, so no build tools are needed on the target machine.
Native node module to access the Windows Registry.
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.
npm install @photostructure/windows-registryconst { GetStringRegKey } = require('@photostructure/windows-registry');
console.log(GetStringRegKey('HKEY_LOCAL_MACHINE', 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion', 'ProgramFilesPath'));npm install
npm run build:native # builds the prebuilt binary
npm test # builds if necessary, then runs testsUpstream copyright Microsoft Corporation.