Giter VIP home page Giter VIP logo

reminder's Introduction

Reminder

Simple scheduler for Node.JS

Installation

To install Reminder please run the following command:

$ npm install reminder

Usage

Quick start

Initializing the reminder:

var Reminder = require('reminder');
var remind = new Reminder();

And handy helper:

var util = require('util');

Adding the few tasks:

remind.every('5 minutes', function(date) {
    util.log("Close the Twitter and start to work!");
});

remind.every('4 hours', function(date) {
    util.log("It\'s time to eat something!");
});

Also you may add the task that should be done only once:

remind.at('07:45', function(date) {
    util.log("Wake up! You have an interview at 9 AM.")
});

Events

  • 'minute'
  • '2 minutes'
  • '3 minutes'
  • '4 minutes'
  • '5 minutes'
  • '6 minutes'
  • '10 minutes'
  • '12 minutes'
  • '15 minutes'
  • '20 minutes'
  • '30 minutes'
  • 'hour'
  • '2 hours'
  • '3 hours'
  • '4 hours'
  • '6 hours'
  • '8 hours'
  • '12 hours'

Methods

  • remind.at
  • remind.every
  • remind.cancel
  • remind.forget

reminder's People

Contributors

boobsd avatar

Watchers

James Cloos avatar Wilco avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.