3.5.9 • Published 3 months ago

qiao-regedit v3.5.9

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

qiao-regedit

npm version npm downloads

nodejs 操作 windows 注册表

install

安装

npm i qiao-regedit

use

使用

// cjs
const { addValue } = require('qiao-regedit');

// mjs
import { addValue } from 'qiao-regedit';

api

addValue

添加值

  • options.key
    • 类型: string
    • 说明: key
  • options.name
    • 类型: string
    • 说明: name
  • options.data
    • 类型: string
    • 说明: data
  • callback
    • 类型: function
    • 说明: 添加成功的回调函数
const options = {
  key: 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run',
  name: 'test',
  data: 'haha',
};

addValue(options, (res) => {
  console.log(res);
});

delValue

删除值

  • options.key
    • 类型: string
    • 说明: key
  • options.name
    • 类型: string
    • 说明: name
  • callback
    • 类型: function
    • 说明: 删除成功的回调函数
const options = {
  key: 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run',
  name: 'test',
};

delValue(options, (res) => {
  console.log(res);
});

listValues

列出值

  • key
    • 类型: string
    • 说明: key
  • callback
    • 类型: function
    • 说明: 列出成功的回调函数
const key = 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run';
listValues(key, (err, res) => {
  console.log(err, res);
});
3.5.9

3 months ago

3.5.3

7 months ago

3.2.1

12 months ago

3.2.3

11 months ago

3.0.1

1 year ago

3.0.6

1 year ago

3.1.9

12 months ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.0.9

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago