0.0.7 • Published 2 years ago

qiao.plugin.regedit v0.0.7

Weekly downloads
5
License
MIT
Repository
github
Last release
2 years ago

urls

homepage

https://code.insistime.com/qiao.plugin.regedit

github

https://github.com/insistime/qiao.plugin.regedit

npm

https://www.npmjs.com/package/qiao.plugin.regedit

donate

http://uikoo9.com/donate

started

install

npm install qiao.plugin.regedit

api

addValue

'use strict';

var qiaoPluginRegedit = require('qiao.plugin.regedit');

var test = function(){
	// var key = 'HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run';
	var key = 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run';
	var obj = {
		key : key,
		name: 'test',
		data: 'haha'
	};
	
	qiaoPluginRegedit.addValue(obj, function(res){
		console.log(res);
	});
};

test();

addValueSync

'use strict';

var qiaoPluginRegedit = require('qiao.plugin.regedit');

var test = async function(){
	try{
		// var key = 'HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run';
		var key = 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run';
		var obj = {
			key : key,
			name: 'test',
			data: 'haha'
		};
		
		var res = await qiaoPluginRegedit.addValueSync(obj);
		console.log(res);
	}catch(e){
		console.log(e);
	}
};

test();

delValue

'use strict';

var qiaoPluginRegedit = require('qiao.plugin.regedit');

var test = function(){
	// var key = 'HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run';
	var key = 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run';
	var obj = {
		key : key,
		name: 'test'
	};
	
	qiaoPluginRegedit.delValue(obj, function(res){
		console.log(res);
	});
};

test();

delValueSync

'use strict';

var qiaoPluginRegedit = require('qiao.plugin.regedit');

var test = async function(){
	try{
		// var key = 'HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run';
		var key = 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run';
		var obj = {
			key : key,
			name: 'test'
		};
		
		var res = await qiaoPluginRegedit.delValueSync(obj);
		console.log(res);
	}catch(e){
		console.log(e);
	}
};

test();

listValues

'use strict';

var qiaoPluginRegedit = require('qiao.plugin.regedit');

var test = function(){
	// var key = 'HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run';
	var key = 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run';
	
	qiaoPluginRegedit.listValues(key, function(err, res){
		console.log(err, res);
	});
};

test();

listValuesSync

'use strict';

var qiaoPluginRegedit = require('qiao.plugin.regedit');

var test = async function(){
	try{
		// var key = 'HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run';
		var key = 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run';
		
		var res = await qiaoPluginRegedit.listValuesSync(key);
		console.log(res);
	}catch(e){
		console.log(e);
	}
};

test();

version

0.0.3.20200803

  1. ncu

0.0.2.20200620

  1. fix list key space bug
  2. string trim

0.0.1.20200606

  1. init project
  2. add value
  3. add value sync
  4. del value
  5. del value sync
  6. 兼容中文和空格
  7. list values
  8. list values sync
0.0.7

2 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago