cubely

A Node.js library for colorful logs and log files.

Usage no npm install needed!

<script type="module">
  import cubely from 'https://cdn.skypack.dev/cubely';
</script>

README

Cubely

A Node.js library for colorful logs and log files. .

Size MIT

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.

License

MIT