0.2.4 • Published 10 years ago

node-reg v0.2.4

Weekly downloads
220
License
ISC
Repository
github
Last release
10 years ago

node-reg

A very simple, and incomplete registry editor for Node.js

Installation

$ npm install --save node-reg

api

Include node-reg in your project

var regedit = require('node-reg');

Currently node-reg only has two methods:

  • addKey
  • getKey

Both take a single object parameter. The expected format for both is:

{
	target: 'Location-in-registry',
	name: 'Name of key',
	value: 'Value for key',
	type: 'The data type'
}

All attributes are necessary in addKey, however only target is necessary for getKey. Name and type are optional for getKey, and value is unused.

Example

var regedit = require('node-reg');

regedit.addKey({
	target: 'HKCU\\Software\\TestDemo',
	name: 'MyApp',
	value: 'heyLookAValue',
	type: 'REG_SZ'
}).then(function(result) {
	console.log(result)
});

regedit.getKey({
	target: 'HKCU\\Software\\TestDemo'
}).then(funciton(result) {
	console.log(result);
});

Notes

  • If a name isn't specified, getKey will return a list of all keys in the target location. If one is specified, it will return the single value (or a message indicating none is available).

TODO

  • Better code documentation
  • Testing
  • Error handling

Version

0.2.0

0.2.4

10 years ago

0.2.3

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago