1.1.1 • Published 11 years ago
yobi v1.1.1
yobi
node.js system hooks
do various things to/with the system using child processes
install
With npm do:
npm install yobiUsage
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 arraySystem 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