yobi

1.1.2 • Public • Published

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

Package Sidebar

Install

npm i yobi

Weekly Downloads

3

Version

1.1.2

License

ISC

Last publish

Collaborators

  • bernsie
  • sableloki