npm install log-minion
import { logMinion } from 'log-minion';
// You may log a minion with the import function logMinion
logMinion(1);
// Or use console.minion
console.minion(2);
Logs a Minion with the specified number of eyes.
numberOfEyes
The number of Eyes you want your minion to have.
import { logMinion } from 'log-minion';
logMinion(1);
import { logMinion } from 'log-minion';
logMinion(2);
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.