console-success

1.0.4 • 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.4/dist/index.js

JsDeliver:

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

Package Sidebar

Install

npm i console-success

Weekly Downloads

18

Version

1.0.4

License

MIT

Unpacked Size

164 kB

Total Files

44

Last publish

Collaborators

  • tufantunc