https://github.com/tediousjs/node-ssrp
https://github.com/tediousjs/node-ssrp
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tediousjs/node-ssrp
- Owner: tediousjs
- Created: 2017-03-23T20:15:44.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T20:34:36.000Z (over 3 years ago)
- Last Synced: 2025-05-31T20:04:18.307Z (about 1 year ago)
- Language: TypeScript
- Size: 556 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-ssrp
> An implementation of the SQL Server Resolution protocol.
```js
const { listInstances } = require('ssrp');
const instances = await listInstances({ address: "192.168.0.4", family: 4 });
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}`);
}
```