registry-js
A simple and opinionated library for working with the Windows registry
Last updated 6 years ago by shiftkey .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install registry-js 
SYNC missed versions from official npm registry.

registry-js

A simple and opinionated library for working with the Windows registry

Goals

  • zero dependencies
  • faster than reg.exe
  • implement based on usage - don't replicate the registry API
  • leverage TypeScript declarations wherever possible

Note: This is currently in preview, with support for features that GitHub Desktop and Atom require.

Install

$ 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 Node and Electron that are actively supported by these projects. Please refer to the release documentation for Node and Electron to see what is supported currently.

Contributing

Read the Setup section to ensure your development environment is setup for what you need.

This project isn't about implementing a 1-1 replication of the Windows registry API, but implementing just enough for whatever usages there are in the wild.

If you want to see something supported, open an issue to start a discussion about it.

Current Tags

  • 1.16.0                                ...           latest (10 months ago)
  • 1.15.0-rc1                                ...           next (4 years ago)

32 Versions

  • 1.16.0                                ...           10 months ago
  • 1.15.1                                ...           4 years ago
  • 1.15.0                                ...           4 years ago
  • 1.15.0-rc1                                ...           4 years ago
  • 1.14.0                                ...           4 years ago
  • 1.13.0                                ...           4 years ago
  • 1.12.0                                ...           4 years ago
  • 1.11.0                                ...           4 years ago
  • 1.10.0                                ...           4 years ago
  • 1.9.0                                ...           5 years ago
  • 1.8.0                                ...           5 years ago
  • 1.7.0                                ...           5 years ago
  • 1.6.0                                ...           6 years ago
  • 1.5.0                                ...           6 years ago
  • 1.4.0                                ...           6 years ago
  • 1.3.4                                ...           6 years ago
  • 1.3.3                                ...           6 years ago
  • 1.3.2                                ...           6 years ago
  • 1.3.1                                ...           6 years ago
  • 1.3.0                                ...           6 years ago
  • 1.2.0                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.9                                ...           6 years ago
  • 1.0.8                                ...           6 years ago
  • 1.0.7                                ...           7 years ago
  • 1.0.6                                ...           7 years ago
  • 1.0.5                                ...           7 years ago
  • 1.0.4                                ...           7 years ago
  • 1.0.3                                ...           7 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (10)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE