@sane/promisify-listen
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@sane/promisify-listen

Promisify network server listen & close.

Install

npm install @sane/promisify-listen --save

Example

import { promisifyListen } from '@sane/promisify-listen';

let s = promisifyListen(http.createServer(...));
s.listenAsync(31337).then(() => {
    // ...
});

Release

  1. Bump up the version number in package.json
  2. Add a section for the new release in CHANGELOG.md
  3. Run npm run-script compile to ensure it builds
  4. Commit
  5. Run npm publish
  6. Create a git tag for the new release and push it

Readme

Keywords

Package Sidebar

Install

npm i @sane/promisify-listen

Weekly Downloads

133

Version

1.0.1

License

MIT

Last publish

Collaborators

  • sane