New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
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

  1. Install the package

    npm install time-to-emoji --save

  2. require the package

        var clockface = require('time-to-emoji');
    
  3. 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');
    
  4. 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc