console-success
v1.0.4
Published
console.success function logs colored messages with success icon on terminal and browser console.
Downloads
515
Maintainers
Readme
node-console-success
console.success function logs colored messages with success icon on terminal and browser console too.
Sample result:
Browser & Node Supports
This package supports most common browsers and node versions. To check this on your browser, click here
It's only 584 bytes and 354 bytes gzipped.
Install
npm install console-success --save
How to Use in Node
require('console-success');
console.success(new Date()); // log time now
console.success('All test successfully completed'); // log text
How to Use in Browser
If you use module bundler like Webpack, Rollup etc.
import 'console-success';
console.success(new Date()); // log time now
console.success('All test successfully completed'); // log text
Or you can directly add in your html:
<script src="https://cdn.jsdelivr.net/gh/tufantunc/node-console-success/dist/index.js"></script>
<script>
console.success("Hello world!");
</script>
CDN
Unpkg:
https://unpkg.com/[email protected]/dist/index.js
JsDeliver:
https://cdn.jsdelivr.net/gh/tufantunc/node-console-success/dist/index.js