netshell

1.0.14 • Public • Published

Installation

npm install --save netshell

Usage

Code use example:

var netsh = require('netshell');

netsh.createRule({
        name:'https', 
        dir:'out', 
        action:'block', 
        protocol: 'tcp', 
        remoteport:443
    }).then((data) => {
        console.log(data); // undefined
    });

netsh.readRule({name:'https'})
    .then((data) => {
        console.log(data); // rule
    });

netsh.updateRule({name:'https'}, {action:'allow'})
    .then((data) => {
        console.log(data); 
    });

netsh.deleteRule({name:'https'})
    .then((data) => {
        console.log(data); 
    });

Package Sidebar

Install

npm i netshell

Weekly Downloads

1

Version

1.0.14

License

ISC

Unpacked Size

4.98 kB

Total Files

4

Last publish

Collaborators

  • _spore