node-weekji
v1.0.0
Published
https://twitter.com/changelog/status/823562124920291328 ![](https://pbs.twimg.com/media/C23hTRwUAAAeNY8.jpg)
Downloads
2
Readme
Weekday Emoji
https://twitter.com/changelog/status/823562124920291328
module.exports = function (weekday) {
switch (weekday % 7) {
case 0: return '😖'
case 1: return '🙄'
case 2: return '😟'
case 3: return '😐'
case 4: return '😆'
case 5: return '😂'
case 6: return '😴'
}
}
Usage
npm install node-weekji
Then
const wji = require('node-weekji')
console.log(wji(new Date().getDay()))