This is a playground
to test code. It runs a full Node.js
environment and already has all of npm
’s 1,000,000+ packages pre-installed, including netgear
with all npm
packages installed. Try it out:
/* eslint-disable no-console */
/* eslint-disable import/no-unresolved */
// testing from runkit is not (yet) supported.
// please try testing from a desktop (see test.js)
const NetgearRouter = require('netgear');
const router = new NetgearRouter({ password: 'password' });
router.getCurrentSetting()
.then(console.log)
.catch(console.log);
router.login()
.then(() => {
router.getInfo()
.then(console.log)
.catch(console.log);
router.getAttachedDevices()
.then(console.log)
.catch(console.log);
})
.catch(console.log);
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.