time-to-emoji
v1.0.2
Published
Convert time to Watchface emoji
Downloads
3
Readme
Time to Emoji
Have you ever wanted a time visualized by an emoji?
If your answer was yes, then today is your lucky day!
Now with this package it is possible to parse
- hour, minute either as string or integer
- string in 'HH:MM' format
- Date
into an clock face emoji! WOAHH!
Usage
Install the package
npm install time-to-emoji --save
require the package
var clockface = require('time-to-emoji');
Use the function of your choice
Available Functions:
clockface.time2emoji('HH','MM'); // with leading zeros clockface.time2emoji('H','M'); clockface.time2emoji(H,M); Date.prototype.toEmoji(); // usage: new Date().toEmoji(); clockface.date2emoji(new Date()); clockface.string2emoji('HH:MM');
Visualize Time 🕛🕧🕐🕜🕑
You can find basic tests of this package in test.js
Contribution is welcomed 👐