This package has been deprecated

Author message:

This is now supporting the much better indent-log project

lognana

1.0.0 • Public • Published

🍌Lognana Build Status

An emoji fueled log system with zero dependencies

Install

$ npm install lognana

Usage

myfile.js

const Log = require( 'lognana' );

Log.emoji = '🍌';

// Check if the user is in verbose mode
if( process.argv.includes( '-v' ) || process.argv.includes( '--verbose' ) ) {
  Log.verboseMode = true;
};


Log.message( 'hello world' );
Log.welcome( 'hello world' );
Log.error( 'hello world' );
Log.info( 'hello world' );
Log.ok( 'hello world' );
Log.verbose( 'hello world' );

In the terminal:

node myfile.js --verbose

Output:

Example output of the Log function

Release History

  • v1.0.0 - First release

Package Sidebar

Install

npm i lognana

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

66.5 kB

Total Files

8

Last publish

Collaborators

  • alexpage