JSPM

connect-port

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

Resolve a promise when successfully connected to remote port.

Package Exports

  • connect-port

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 (connect-port) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

connect-port

Resolve a promise when successfully connected to remote port.

Installation

npm install connect-port --save

Usage

const connectPort = require('connect-port')

connectPort({
  host: 'npmjs.com',
  port: 80,
}).then(socklet => {
  console.log(socklet.connecting)
})
// false