Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@128technology/netconfetti

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@128technology/netconfetti

A Javascript NetConf client

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
5
Weekly downloads
 
Created
Source

Netconfetti 🎉 Build Status npm (scoped)

It's always a party with NetConf

Netconfetti is a Javascript client for the NetConf protocol.

Example

const netconfetti = require('@128technology/netconfetti');

// Beacuse Netconfetti is promise based, it's extremely easy to utilize it
// in a async/await fashion.
async function main() {
  const client = new netconfetti.Client();

  await client.connect({
    host: '127.0.0.1',
    username: 'admin',
    password: 'admin',
    port: 22
  });

  // The RPC method can also take a string
  const configResponse = await client.rpc('get-config');
  console.log(configResponse.data)

  // The RPC method can also take an object that will get converted into
  // XML via xml2js.Builder.
  const doThingsResponse = await client.rpc({
    'do-things': {
      $: {
        xmlns: 'http://special-namespace-here-if-required'
      },
      'param1': 'hello',
      'param2': 'goodbye'
    }
  });

  console.log(doThingsResponse.data);
}

main().then(
  () => process.exit(0),
  err => {
    console.error(err);
    process.exit(1);
  });

FAQs

Package last updated on 24 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc