Pretty console formatter for Node.js with optional line numbers, spinners, and colored output. Current stable version is 1.1.5 (2024). Provides overloads for standard console methods (log, warn, error, group, table) and adds structured helpers like array, step, chunk, and divider. Key differentiator: lightweight alternative to consola or signale with explicit sync/async variants for each operation. Ships TypeScript type definitions. Low download count (niche utility). Note: requires manual registration via corn.register() to patch global console.
npm install cornsolNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows registration, enhanced console methods, step/array usage, and direct API without registration.
Call corn.unregister() when done, or use explicit API (e.g., corn.print*) to avoid side effects.
Use corn-specific methods (e.g., corn.printStepSync) instead of console.step for type safety, or extend the Console interface manually.
Use .async variant when dealing with Promise-based operations.
Manage line numbering manually if cross-session consistency is required.
Use default import: import corn from 'cornsol' then corn.register().
Use import corn from 'cornsol' and then access corn.printArraySync().
Call corn.register() before using console.step, or use corn.printStepSync() directly.
No dependency data recorded yet.