poku
Version:
🐷 Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.
13 lines (12 loc) • 458 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.hr = exports.log = void 0;
const node_process_1 = require("process");
const columns = Math.max((node_process_1.stdout.columns || 50) - 10, 40);
const log = (data) => node_process_1.stdout.write(`${String(data)}\n`);
exports.log = log;
const hr = () => {
const line = '─'.repeat(columns);
(0, exports.log)(`\n\x1b[2m\x1b[90m${line}\x1b[0m\n`);
};
exports.hr = hr;