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
import { logMinion } from 'log-minion';
logMinion(2);
Output
FAQ
Why?
So that you can log Minions.
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
?
By adding the Yes.