1.1.2 • Published 10 years ago
yobi v1.1.2
yobi
node.js system hooks
do various things to/with the system using child processes
install
With npm do:
npm install yobi
Usage
Require The module as normal
var yobi = require('yobi');
Running Commands inside of Node using
child_process
var cmd = yobi.CMD;
var args = [
'-lh',
'/usr'
];
cmd('ls', args); // args are passed as an array
System Evaluation: Information/Specs
yobi.Eval();
will print out your OS, with every else you need to know about your system
System Environment Varibles
yobi.Enviroment();
will print out a list of environment varibles in JSON format
Rename a directory
yobi.RenameDir('exampleDir', 'newDirName');
Remove a directory
yobi.RmDir('exampleDir');
license
MIT