Socket
Book a DemoInstallSign in
Socket

time-to-emoji

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

time-to-emoji

Convert time to Watchface emoji

1.0.2
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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 👐

FAQs

Package last updated on 16 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.