console.success function logs colored messages with success icon on terminal and browser console too.
Sample result:
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.
npm install console-success --save
require('console-success');
console.success(new Date()); // log time now
console.success('All test successfully completed'); // log text
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>
Unpkg:
https://unpkg.com/console-success@1.0.4/dist/index.js
JsDeliver:
https://cdn.jsdelivr.net/gh/tufantunc/node-console-success/dist/index.js