npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-custom-count-down-timer

v1.0.2

Published

A react component that can be used as a count-down/launch timer

Downloads

6

Readme

React Custom Countdown/ Launch Timer

A customizable countdown component for React, that can be used as a launch timer or as a countdown timer.

Getting Started

You can install the module via npm or yarn

npm i react-custom-count-down-timer

or

yarn add react-custom-count-down-timer

Basic Usage

Import the ReactCountDownTimer component from react-custom-count-down-timer in file where the count down needs to be used. Just pass in a targetDateTimeVal and you'll be able use this. Since this is a count down timer the targetDaeTimeVal should hold a future date.

Example

import React from 'react';
import ReactCountDownTimer from 'react-custom-count-down-timer';

export default function App(){

return (
    <ReactCountDownTimer targetDateTimeVal={'May 10, 2021 00:00:00'} />
 );
}

Custom Properties

| Option | Description | Default | Type | |-------------------------------------|------------------------------------------------------------------------------------------------------------------|---------------|--------| | rootColor | Using this the a common color can be set to headerText, descMessage and timers | #38393a | string |
| headerText | Using this prop custom header title can be set | - | string | | headerTextFontSize | The headerText fontSize can be adjusted using this prop | '3em' | string | | headerTextColor | Can be used to set the color of headerText | #38393a | string | | descMessage | Using this prop description message can be added | - | string | | descMsgColor | Can be used to set the color of descMessage | #38393a | string | | descTextFontSize | The headerText fontSize can be adjusted using this prop | '0.5em' | string | | icon | Image can be displayed below the counter. The image needs to be stored in the public folder and pass the image | - | string | | iconWidth & iconHeight | Specify the image widht and height using these props |'500px & 'auto'| string |

Example

<ReactCountDownTimer
  targetDateTimeVal={'May 10, 2021 00:00:00'}
  headerText={'Front End Web Developer Program'}
  headerTextFontSize={'32px'}
  headerTextFontWeight={900}
  descMsgColor={'#d55617'}
  descMessage={
    'The goal of the Front End Web Developer Nanodegree program is to equip learners with the unique skills they need to build and develop a variety of websites and applications. Graduates of this Nanodegree program will be able to construct responsive websites using CSS, Flexbox and CSS Grid, develop interactive websites and UI (User Interface) applications using JavaScript and HTML, and connect a web application to backend server data using JavaScript. '
  }
  descTextFontSize={'16px'}
  icon={'calendarIcon.jpg'}
  iconWidth={'700px'}
/>

You can customize the counter by wrrapping in your own custom component and even can pass your custom components to ReactCountDownTimer as {props.children}.