@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
- Bump up the version number in package.json
- Add a section for the new release in CHANGELOG.md
- Run npm run-script compile to ensure it builds
- Commit
- Run npm publish
- Create a git tag for the new release and push it