https://github.com/eugeny/windows-native-registry
Native windows registry access for Node
https://github.com/eugeny/windows-native-registry
Last synced: about 1 month ago
JSON representation
Native windows registry access for Node
- Host: GitHub
- URL: https://github.com/eugeny/windows-native-registry
- Owner: Eugeny
- License: mit
- Created: 2019-03-02T13:54:27.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-25T10:48:45.000Z (over 1 year ago)
- Last Synced: 2025-04-13T23:13:55.948Z (about 1 month ago)
- Language: C++
- Size: 168 KB
- Stars: 22
- Watchers: 5
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# windows-native-registry
[](https://github.com/Eugeny/windows-native-registry/actions/workflows/nodejs.yml)
* No external processes.
* Node-API
* Electron ready```ts
export interface RegistryValue {
name: string
type: REG
value: any
}export enum HK {
CR = 0x80000000,
CU = 0x80000001,
LM = 0x80000002,
U = 0x80000003,
}export enum REG {
SZ = 1,
EXPAND_SZ = 2,
BINARY = 3,
DWORD = 4,
}export function getRegistryKey (root: HK, path: string): {[name: string]: RegistryValue}
export function getRegistryValue (root: HK, path: string, name: string): any
export function setRegistryValue (root: HK, path: string, name: string, type: REG, value: string): any
export function setRegistryValue (root: HK, path: string, name: string, type: REG.MULTI_SZ, value: string[]): any
export function listRegistrySubkeys (root: HK, path: string): string[]
export function createRegistryKey (root: HK, path: string)
export function deleteRegistryKey (root: HK, path: string)
```## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Christian Walther
💻
André Sikma
💻
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!