Neuron Powered Motorization
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

console-success

1.0.2 • Public • Published

node-console-success NPM version codecov Downloads License twitter

console.success function logs colored messages with success icon on terminal and browser console too.

Sample result:

console.success result image

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/console-success@1.0.2/dist/index.js

JsDeliver:

https://cdn.jsdelivr.net/gh/tufantunc/node-console-success/dist/index.js

Install

npm i console-success

DownloadsWeekly Downloads

49

Version

1.0.2

License

MIT

Unpacked Size

162 kB

Total Files

43

Last publish

Collaborators

  • avatar