Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arvitaly/freeport-es6

Find a free TCP-port
https://github.com/arvitaly/freeport-es6

freeport typescript

Last synced: 9 days ago
JSON representation

Find a free TCP-port

Awesome Lists containing this project

README

        

# freeport-es6

Find a free TCP-port

[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url]
[![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)

# Install

npm install freeport-es6 --save

# Usage

import freeport from "freeport-es6";
async function getPort(){
try{
const port = await freeport();
console.log(port);
}catch(e){
console.error(e);
}
}

# Test

npm install
npm test

[npm-image]: https://badge.fury.io/js/freeport-es6.svg
[npm-url]: https://npmjs.org/package/freeport-es6
[travis-image]: https://travis-ci.org/arvitaly/freeport-es6.svg?branch=master
[travis-url]: https://travis-ci.org/arvitaly/freeport-es6
[daviddm-image]: https://david-dm.org/arvitaly/freeport-es6.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/arvitaly/freeport-es6
[coveralls-image]: https://coveralls.io/repos/arvitaly/freeport-es6/badge.svg
[coveralls-url]: https://coveralls.io/r/arvitaly/freeport-es6