Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/arvitaly/freeport-es6
- Owner: arvitaly
- License: mit
- Created: 2017-04-02T04:56:19.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T01:17:47.000Z (about 2 years ago)
- Last Synced: 2024-04-14T19:55:59.847Z (9 months ago)
- Topics: freeport, typescript
- Language: JavaScript
- Size: 728 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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