A simple and opinionated library for working with the Windows registry
npm install registry-jsreg.exe
shellsession
$ npm install --save registry-js
or
$ yarn add registry-js
`
But Why?
The current set of libraries for interacting with the registry have some
limitations that meant we couldn't use it in GitHub Desktop:
* windows-registry depends
on ffi at runtime, which caused issues with webpack-ing, and was missing
APIs we needed.
* winreg depends on
reg.exe which breaks as soon as you enable "Prevent access to registry
editing tools" Group Policy rules (yes, even QUERY operations are caught by
this). More details about this can be found in
desktop/desktop#3105.
After exploring other options like invoking PowerShell - which was too slow - we
decided to write our own little library to do the stuff we require by invoking
the Win32 APIs directly.
Documentation
See the documentation under the
docs folder.
Supported versions
Each release of registry-js` includes prebuilt binaries for the versions of