cute-log-symbols
v0.0.2
Published
Cute log symbols.
Downloads
2
Readme
node-cute-log-symbols
💜 Cute log symbols.
Installation
$ npm install cute-log-symbols
Usage
Importing
// javascript
const { createCuteLogSymbols } = require("cute-log-symbols");
// typescript
import { createCuteLogSymbols } from "cute-log-symbols";
Colored symbols
You will need to install some terminal color library for this. Picocolors is recommended.
import picocolors from "picocolors";
import { createCuteLogSymbols } from "cute-log-symbols";
const logSymbols = createCuteLogSymbols({
style: {
info: picocolors.blue,
warning: picocolors.yellow,
success: picocolors.green,
error: picocolors.red,
},
});
console.log(logSymbols.info, "Information");
console.log(logSymbols.warning, "Warning");
console.log(logSymbols.success, "Success");
console.log(logSymbols.error, "Error");
Uncolored symbols
import { createCuteLogSymbols } from "cute-log-symbols";
const logSymbols = createCuteLogSymbols();
console.log(logSymbols.info, "Information");
console.log(logSymbols.warning, "Warning");
console.log(logSymbols.success, "Success");
console.log(logSymbols.error, "Error");