0.1.7 • Published 8 years ago

node-hotspot v0.1.7

Weekly downloads
41
License
GPL-3.0
Repository
github
Last release
8 years ago

WIP node-hotspot

npm version

Manage, Add & Remove infrastructure mode hotspots on Windows 7+ for Node.js apps.

Node-hotspot

Installation

$ npm install node-hotspot --save

Code example

var hotspot = require('node-hotspot');

var opts = {
    ssid: 'hotspot name', 
    password: '66ahhhs641jk', 
    force: true, // (optional)  if hosting a network already turn it off and run ours.
    adaptor: 'Ethernet' // (optional / false) name of adaptor to have ICS (Internet Connection Sharing) share internet from, passing false disables ICS all together - if non givin node-hotspot will attempt to find currently connected adaptor automatically
};

hotspot.enable(opts)
    .then(function() {
        console.log('Hotspot Enabled')
    })
    .catch(function(e) {
        Console.log('Something went wrong; Perms?', e)
    });

hotspot.disable(opts)
    .then(function() {
        console.log('Hotspot disabled')
    })
    .catch(function(e) {
        Console.log('Something went wrong; Perms?', e)
    });

hotspot.status(opts)
    .then(function(status) {
        console.log('Hotspot status: ' + status) //status contains clients object and state
    });

Support

If you're having any problem, please raise an issue on GitHub and I'll be happy to help.

Contribute

License

The project is licensed under the GPL-3.0 license.

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago