Need private packages and team management tools?Check out npm Teams »

ssrp

1.0.0 • Public • Published

node-ssrp

An implementation of the SQL Server Resolution protocol.

const SSRPClient = require('ssrp').Client;
const client = new SSRPClient();
 
client.listInstances({ address: "192.168.0.4", family: 4 }).then((instances) => {
  if (instances.length === 0) {
    console.log("Found no SQLServer instances.");
    return;
  }
 
  console.log("Found the following SQLServer instances:");
  for (let i = 0, length = instances.length; i < length; i++) {
    console.log(`${instance.instanceName} - ${instance.version}`);
  }
});

Keywords

none

Install

npm i ssrp

DownloadsWeekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • avatar