Skip to content

roblouie/log-minion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Log Minion

Usage

Install Package

npm install log-minion

Log Minions

import { logMinion } from 'log-minion';

// You may log a minion with the import function logMinion
logMinion(1);

// Or use console.minion
console.minion(2);

API

logMinion(numberOfEyes)

Logs a Minion with the specified number of eyes.

Parameters

numberOfEyes The number of Eyes you want your minion to have.

Examples

import { logMinion } from 'log-minion';

logMinion(1);

Output

Minion with one eye

import { logMinion } from 'log-minion';

logMinion(2);

Output

Minion with two eyes

FAQ

Why?

So that you can log Minions.

By adding the minion() method to console won't this package cause unpredictable behavior if future JavaScript engines or other Minion logging packages add their own minion() method to console?

Yes.

About

Logs minions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published