@camol/winreg-rs
v0.2.6
Published
Template project for writing node package with napi-rs
Downloads
8
Maintainers
Readme
winreg-rs
writen by rust and winreg
install
yarn add @camol/winreg-rs
usage
getKeyValue(key: string, name: string): string | null
const { JsRegistry, HKLM } = require("@camol/winreg-rs");
const registry = new JsRegistry(HKLM);
const value = registry.getKeyValue("Software\\Classes\\.docx","")
console.log({value})
getValues(key: string): string[] | null
const { JsRegistry, HKLM } = require("@camol/winreg-rs");
const registry = new JsRegistry(HKLM);
const values = registry.getValues("Software\\Classes\\.docx")
console.log({values})
getKeys(key: string): string[] | null
const { JsRegistry, HKLM } = require("@camol/winreg-rs");
const registry = new JsRegistry(HKLM);
const keys = registry.getKeys("Software\\Classes\\.docx")
console.log({keys})