The core-windows-registry
is a Node.js library for interacting with the Windows Registry, providing a set of functions to read, write, and manipulate registry keys and values. This library is designed to be used with Node-API and is Electron ready, allowing for easy integration into desktop applications.
- No external processes required for registry operations.
- Full Node-API support for efficient native bindings.
- Electron compatibility for use in desktop application development.
The library exports several functions and enums for registry manipulation:
HKEY
: Represents different root keys in the Windows Registry.REG
: Represents the data types for registry values.
getRegistryKey
: Retrieves a registry key along with its values and types.getRegistryValue
: Retrieves a specific value from a registry key.setRegistryValue
: Sets a value for a given registry key.listRegistrySubkeys
: Lists subkeys under a specific registry key.createRegistryKey
: Creates a new registry key.deleteRegistryKey
: Deletes a registry key.
For detailed usage and examples, refer to the interface definitions in the source code.
To use core-windows-registry
, clone the repository and install the dependencies:
git clone https://github.com/zkxdex/core-windows-registry.git
cd core-windows-registry
npm i
or
yarn
or
pnpm i
To build the project, run the following command:
node-gyp
is a tool used to compile native Node.js modules. You need to configure the build environment for your project.
node-gyp configure
Once configured, the next step is to compile the native code.
node-gyp build
Finally, you must compile the entire project, including the TypeScript files.
npm run build
or
yarn run build
pnpm run build
This will compile the TypeScript files, configure the build with node-gyp
, and compile the native code.
To run the tests, execute the following command:
npm test
or
yarn test
or
pnpm test
Make sure you have Mocha installed as it is used for running the tests.
For additional documentation on how to configure your environment for node-gyp
on Windows, visit the node-gyp Windows installation guide.
If you would like to contribute to the project, please submit issues and pull requests on GitHub, following the contribution guidelines outlined in the repository.
This project is licensed under the MIT License - see the LICENSE.md file for details.
Please replace the placeholders with the actual URLs to the LICENSE.md
file and other resources as necessary. The installation and building instructions assume that users are familiar with the command line and have Node.js as well as npm installed. The provided script commands in the package.json
are used for building and testing the project.