Node Utilities for Windows
Right now it's just a few wrappers around some builtin console commands but FFI bindings are soon to come.
driveAlias('x', folder)
driveAlias('x')
driveAlias()
getFontNames()
associations('.js'. 'jscript')
associations('.js')
associations()
fileTypes('jscript'. process.execPath)
fileTypes('jscript')
fileTypes()
registry(key, options)
v = registry('HKLM/Software/Microsoft')
v.someValue.remove()
v.add('newValue', 'myValue')
v.add('newKey')
v.subKey
x = registry('HKCU/Some/Random/Place')
x.add('newName', v.someValue)
z = v.aValue
z.remove()
v.add(z.name, z)
v.remove()
options = { search : 'query',
recursive : false,
case : false,
exact : false,
in : 'keys' || 'values',
type : 'REG_SZ' || 'REG_MULTI_SZ' || 'REG_DWORD' ||
'REG_BINARY' || 'REG_EXPAND_SZ' || 'REG_QWORD' ||
'REG_NONE' }
registry.query
registry.add
registry.delete
registry.copy
registry.save
registry.restore
registry.load
registry.unload
registry.compare
registry.export
registry.import
registry.flags
execSync('cmd' ...)
Command(command, name, formatter)
function parseCSV(str){
return str.trim().split(/\r?\n/).map(function(str){
return JSON.parse('['+str+']');
});
return str;
}
var nodes = Command('tasklist /fo csv /fi "imagename eq node.exe"', 'nodes', parseCSV);
nodes();