This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| undefinedify-null Test Coverage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| const { execSync } = require('child_process'); | |
| const portList = process.argv.filter((arg) => !isNaN(Number(arg))); | |
| if (portList.length === 0) { | |
| throw new Error( | |
| '๊ฐ์ ์ ์ผ๋ก ํ๋ก์ธ์ค๋ฅผ ์ค์ง์ํฌ TCP ํฌํธ ๋ฒํธ๋ฅผ CLI ์ธ์๋ก ๋ฃ์ด์ฃผ์ธ์. ex) killport 1111 2222 3333', | |
| ); |