UNPKG

freethenport

Version:

module to kill process on an occupied port

15 lines (12 loc) 342 B
/* eslint-env jest */ 'use strict' // const freethenport = require('./function') // const port = 8071; // freethenport(port) // .then(res => console.log(res)) // .catch(error => console.error(error)); var isWin = process.platform; console.log(isWin); // npm version patch // npm version minor // npm version major