log74
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

log74

Tiny logging utility for Node.js and web. Used to add styling and for intercepting all logged messages.

Node.js usage

Install: npm install --save log74

import { Error, Warn, ... } from 'log74';
 
Error("error message");

Web usage (webpack / tsc / etc)

Install like above.

import { Error, Warn, ... } from 'log74/dist/index.web';
 
Error("error message");

Web usage (global script import)

Include: <script src="https://unpkg.com/log74@1.0.5/dist/index.webpack.js"></script>

// functions are bound to window object
Error("error message");

Dependents (0)

Package Sidebar

Install

npm i log74

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

16.3 kB

Total Files

15

Last publish

Collaborators

  • insertish