Skip to content

Instantly share code, notes, and snippets.

View skymins04's full-sized avatar
๐Ÿข
I may be slow to respond.

Minsu Kang (BetaMan) skymins04

๐Ÿข
I may be slow to respond.
View GitHub Profile
undefinedify-null Test Coverage
#!/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',
);