cubely
v1.2.0
Published
A Node.js library for colorful logs and log files.
Downloads
4
Maintainers
Readme
A Node.js library for colorful logs and log files. .
Installation
Use the npm to install Cubely.
npm install cubely
Or use yarn.
yarn add cubely
Usage
const cubely = require("cubely")
cubely.info('Hello') //-> [INFO]: Hello
cubely.debug('Hello') //-> [DEBUG]: Hello
cubely.warn('Hello') //-> [WARN]: Hello
cubely.error('Hello') //-> [ERROR]: Hello
Custom Logs
cubely.custom('Custom', 'Hello', cubely.colors.foreground.Cyan) //-> [Custom]: Hello
Close the log file
cubely.close() //-> Closes the log
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.