npm.io
1.0.1 • Published 5 years ago

yulelog

Licence
MIT
Version
1.0.1
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
1

yulelog

Inspired by @ChloeCondon's Tweet. Bring some Christmas Emoji to your logging!

Functionality

If the current month is December and the date is on or before the 25th a festive emoji will be added to your console.log messages.

> new Date()
2020-12-17T15:43:49.638Z
> console.log("Merry, Christmas!");
Merry, Christmas!
undefined
> require('yulelog')
{ log: [Function: yuleLog] }
> console.log("Merry, Christmas!");
🌟: Merry, Christmas!
undefined
> 

You can get year round cheer by using the log function exported from this package.

const yuleLog = require('yulelog');

yuleLog.log('Hello')

// šŸŖ: hello

Should I use this in production?

Emphatically, yes.

Keywords