JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q24282F
  • License MIT

Module to determine port availability.

Package Exports

  • chasm

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (chasm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

chasm

Assume port 10100 is currently being used by some other process.

Chasm('smallest',handler); // 1025
Chasm('largest',handler); // 65535
Chasm(10100,handler); // false
Chasm(10101,handler); // 10101
Chasm([10099,10100,10001],handler); // [10099,false,10001]
Chasm({'get':'all','min':10100,'max':10102},handler); // [false,10101,10102]
Chasm({'get':'last','min':10100,'max':10102},handler); // 10102
Chasm({'get':'first','min':10100,'max':10102},handler); // 10101