UNPKG

msync

Version:

Easily manage building and syncing multiple node-modules in a flexibly defined workspace.

8 lines (7 loc) 266 B
import { log } from './libs'; export function formatModuleName(input) { const parts = (input || '').split('/'); const hasOrg = parts.length > 1; const text = hasOrg ? log.gray(`${parts[0]}/${log.cyan(parts[1])}`) : log.cyan(parts[0]); return text; }