Before | After |
---|---|
Cuta is a tiny drop-in console enhancement.
$ npm install cuta
$ yarn add cuta
$ pnpm add cuta
Cuta doesn't support browser API & Bun at the moment!
Cuta can be imported/used in different ways:
Use the import flag
$ node --import=cuta index.js # ESM
$ npm run start --import=cuta
$ node --require=cuta index.js # CJS
$ npm run start --require=cuta
In your executable main file prepend following line:
import "cuta";
// or
require("cuta");
There's no programmatic API configuration for Cuta.
Prototype overwrite mirrors native NodeJS implementation of console. Feel free to open an issue for further questions.
This project is under MIT license. You can freely use it for your own purposes.