npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hmc-registry

v1.0.8

Published

The source code is written by C++, which is more efficient and stable. It is integrated with the current software. It does not need to call cmd to execute. It is not easy to be intercepted by errors in antivirus software

Downloads

13

Readme

注册表编辑器(Editor regedit)

源代码由C++编写而成 效率更高更稳定,与当前软件集成一体,不需要调用cmd执行不容易被杀毒软件失误拦截

The source code is written by C++, which is more efficient and stable. It is integrated with the current software. It does not need to call cmd to execute. It is not easy to be intercepted by errors in antivirus software

该模块的核心组件是(The core components of the module are):hmc-win32


详细使用方法请访问编程帮助文档:

For details on how to use it, please visit the programming help documentation:

编程帮助文档:https://kihlh.gitbook.io/hmc/zhu-ce-biao-bian-ji

Programming help documentation:https://kihlh.gitbook.io/hmc_en/registry-editor

  • HKEY_USERS 用作默认用户首选设置,也作为单个用户的首选设置
  • HKEY_LOCAL_MACHINE 包含描述计算机及其配置的条目。其中包括关于处理器、系统主板、内存和已安装的软件和硬件的信息
  • HKEY_CURRENT_USER 管理系统当前的用户信息
  • HKEY_CURRENT_CONFIG 用作默认用户首选设置,也作为单个用户的首选设置
  • HKEY_CLASSES_ROOT 是与文档类型和 OLE\COM 相关的信息的支持键。这个键是

​ 详细参见:https://learn.microsoft.com/zh-cn/windows/win32/sysinfo/hkey-classes-root-key


安装(install)

 npm i hmc-registry

使用(How to use)

let winReg = require("hmc-registry");

获取键值对内容:(Get the key-value pair content)

let regText= winReg.getStringRegKey("HKEY_CURRENT_USER","Environment","TEMP");
  console.log(regText);
 //log => %USERPROFILE%\AppData\Local\Temp

获取键值对内容(二进制 Buffer):(Get the key-value pair content (Binary Buffer) )

let regBuffer= winReg.getRegistrBuffValue("HKEY_CURRENT_USER","Environment","TEMP");
  console.log(regBuffer);
 //log => <Buffer d0 a4 b8 fa>

let regBufferNot= winReg.getRegistrBuffValue("HKEY_CURRENT_USER","Environment","TEMdsgdhP");
  console.log(regBufferNot);
 //log => undefined

获取键值对内容(二进制 Buffer):(Get the key-value pair content (Binary Buffer) )

let regBuffer= winReg.getRegistrBuffValue("HKEY_CURRENT_USER","Environment","TEMP");
  console.log(regBuffer);
 //log => <Buffer d0 a4 b8 fa>

let regBufferNot= winReg.getRegistrBuffValue("HKEY_CURRENT_USER","Environment","TEMdsgdhP");
  console.log(regBufferNot);
 //log => undefined

获取键值对内容(默认):(Get key-value pair content (default))

let regText= winReg.getStringRegKey("HKEY_CURRENT_USER","Environment","");
  console.log(regText);
 //log => 5265526

获取键值对存在判断:(Get the presence judgment of the key-value pair)

let hasRegKey= winReg.hasStringRegKey("HKEY_CURRENT_USER","Environment","TEMP");
  console.log(hasRegKey);
 //log => true

删除键值对:(Delete key-value pairs)

let removeRegKey= winReg.removeStringRegKey("HKEY_CURRENT_USER","Environment","c");
  console.log(removeRegKey);
 //log => true  

let hasRegKey= winReg.removeStringRegKey("HKEY_CURRENT_USER","Environment","c");
  console.log(hasRegKey);
 //log => false  

设置键值对的值(Set the value of the key-value pair)

 console.log(
     
  winReg.setRegistrKey("HKEY_CURRENT_USER","Environment","c","New Value")
     
  );
 //log => true  

设置键值对的值(默认) (Set the value of the key-value pair (default))

 console.log(
     
  winReg.setRegistrKey("HKEY_CURRENT_USER","Environment","","New Value")
     
  );
 //log => true  

创建一个新的路径(Create a new path)

 console.log(
     
  winReg.createPathRegistr("HKEY_CURRENT_USER","Environment\\54154")
     
  );
 //log => true  

reg => 计算机\HKEY_CURRENT_USER\Environment\54154

枚举路径 中的键值(enum Reg Path Key)

let enumKey = winReg.enumRegistrKey("HKEY_CURRENT_USER","Environment");
console.log(enumKey);

 //log => ['54154']