This package has been deprecated

Author message:

This package has been deprecated in favour of the new package at @push.rocks/smartnetwork

@pushrocks/smartnetwork
TypeScript icon, indicating that this package has built-in type declarations

3.0.2 • Public • Published

@pushrocks/smartnetwork

network diagnostics

Availabililty and Links

Status for master

Status Category Status Badge
GitLab Pipelines pipeline status
GitLab Pipline Test Coverage coverage report
npm npm downloads per month
Snyk Known Vulnerabilities
TypeScript Support TypeScript
node Support node
Code Style Code Style
PackagePhobia (total standalone install weight) PackagePhobia
PackagePhobia (package size on registry) PackagePhobia
BundlePhobia (total size when bundled) BundlePhobia
Platform support Supports Windows 10 Supports Mac OS X

Usage

import * as smartnetwork from 'smartnetwork';
const testSmartNetwork = new smartnetwork.SmartNetwork();
const run = async () => {
  // measure average speed over a period of 5 seconds
  // the structure of speedResult is self explanatory using TypeScript (or the linked TypeDoc above)
  const speedResult: smartnetwork.SpeedResult = testSmartNetwork.getSpeed(5000);

  // you can check for local ports before trying to bind to it from your nodejs program
  const isLocalPortUnused: boolean = await testSmartNetwork.isLocalPortUnused(1234);

  // you can run basic port checks on remote domains.
  const isRemotePortAvailable: boolean = await testSmartNetwork.isRemotePortAvailable(
    'google.com:80'
  );

  // just another way to call for the same thing as above
  const isRemotePortAvailable: boolean = await testSmartNetwork.isRemotePortAvailable(
    'google.com',
    80
  );
};

Contribution

We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can contribute one time or contribute monthly. :)

For further information read the linked docs at the top of this readme.

MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy

repo-footer

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i @pushrocks/smartnetwork

Weekly Downloads

1

Version

3.0.2

License

MIT

Unpacked Size

55.2 kB

Total Files

23

Last publish

Collaborators

  • lossless