xumlib

0.0.4 • Public • Published

xumlib - shell and network utility library

Installation

sudo npm xumlib
sudo npm install -g git://github.com/hakt0r/xumlib.git

Usage:

var xl = require('xumlib');

Functions:

sh : (cmd, args, callback) ->
script : (cmd, callback) ->
scriptline : (cmd, callback) ->
waitproc : (opts) ->
running : (name, callback) ->
killall : (name, callback, fail) ->
forkdm : (args,callback) ->
readproc : (opts) ->
send : (msg,callback) ->
getmac : (line) ->
ip2long : (ip) ->
long2ip : (ip) ->
dot2cidr : (mask) ->
cidr2dot : (cidr) ->
ipAnd : (ip1, ip2) ->
ipAdd : (ip1, ip2) ->
ipSub : (ip1, ip2) ->
ipInv : (ip1) ->
netfirst : (ip) ->
netlast : (ip) ->
sameSubnet : (ip1, ip2, mask) ->
guess_ip_fromnet : (net, callback) ->
guess_net : (ip, callback) ->
guess_dev : (ip, callback) ->
guess_gw : (dev) ->
devip : (dev, callback) ->
devbcast : (dev, callback) ->

Copyrights

Licensed under GNU GPLv3

xumlib is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

xumlib is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this software; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

http://www.gnu.org/licenses/gpl.html

Readme

Keywords

none

Package Sidebar

Install

npm i xumlib

Weekly Downloads

0

Version

0.0.4

License

GPLv3

Last publish

Collaborators

  • hakt0r