Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vkalinichev/uniq-port
Generates a string-based unique port number
https://github.com/vkalinichev/uniq-port
config development generator javascript port tcp-ports utility
Last synced: 3 days ago
JSON representation
Generates a string-based unique port number
- Host: GitHub
- URL: https://github.com/vkalinichev/uniq-port
- Owner: vkalinichev
- License: mit
- Created: 2017-02-05T19:22:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-17T23:37:35.000Z (over 7 years ago)
- Last Synced: 2024-04-25T09:01:30.681Z (7 months ago)
- Topics: config, development, generator, javascript, port, tcp-ports, utility
- Language: JavaScript
- Homepage:
- Size: 52.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# uniq-port [![npm][npm]][npmjs.org] [![build][travis]][travis-ci.org] [![coverage][codecov]][codecov.io] [![dependencies][librariesio]][libraries.io]
[npm]: https://img.shields.io/npm/v/uniq-port.svg?colorB=44cc11
[npmjs.org]: https://www.npmjs.com/package/uniq-port[travis]: https://api.travis-ci.org/vkalinichev/uniq-port.svg
[travis-ci.org]: https://travis-ci.org/vkalinichev/uniq-port[codecov]: https://img.shields.io/codecov/c/github/vkalinichev/uniq-port.svg
[codecov.io]: https://codecov.io/gh/vkalinichev/uniq-port[librariesio]: https://img.shields.io/librariesio/github/vkalinichev/uniq-port.svg
[libraries.io]: https://libraries.io/npm/uniq-portGenerates invariant disjoint [safe-ranged](http://stackoverflow.com/a/218860/4974102)
port numbers based on a string (e.g. appname).## Install
#### NPM
```bash
npm install uniq-port
```
#### Yarn
```bash
yarn add uniq-port
```## Usage
```js
const uniqPort = require( 'uniq-port' )uniqPort( 'your-unique-app-name' ) //-> 65293
uniqPort( 'uniq-port' ) //-> 54115
```## License
[MIT](LICENSE.md) © [Vladimir Kalinichev](https://vkalinichev.com)