# port-precheck
**Repository Path**: tunogya/port-precheck
## Basic Information
- **Project Name**: port-precheck
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-06-16
- **Last Updated**: 2021-06-16
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# port-precheck
Port precheck is a command line interface (CLI) application to check to see if a required port is in use before additional scripts proceed to run
This utility is mostly a wrapper function for [detect-port](https://github.com/node-modules/detect-port) package to give a more basic api when running from the command line.
# Install
```yarn add -D https://github.com/trycrypto/port-precheck```
# Usage
Add to your ```package.json``` under scripts
```
...
{
"prestart": "port-precheck 3000",
"start": "react-scripts start"
}
...
```
If port _3000_ is in use the start script will exit and display a warning ```[Error] Required port 3000 is currently in use.```