Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@breejs/later

breejs961.8kMIT4.2.0TypeScript support: definitely-typed

Maintained fork of later. Determine later (or previous) occurrences of recurring schedules

agenda, async, await, bee, bee, bree, bull, bull, callback, cancel, cancelable, child, clear, cron, cronjob, crontab, date, dates, day, dayjs, delay, english, express, expression, frequencies, frequency, frequent, friendly, graceful, human, humans, interval, job, jobs, js, koa, koatiming, lad, lass, later, moment, momentjs, mongo, mongodb, mongoose, p-cancel, p-cancelable, p-retry, parse, parser, pretty, process, processors, promise, promises, queue, queues, readable, recur, recurring, redis, redis, reload, restart, run, runner, schedule, scheduler, setup, spawn, tab, task, tasker, time, timeout, timer, timers, translated, universalify, worker, workers

readme

@breejs/later

build status code coverage code style styled with prettier made with lass license npm downloads

This project is a maintained fork of Later, as I needed it to be maintained and modernized for Bree. Later is a library for describing recurring schedules and calculating their future occurrences. It supports a very flexible schedule definition including support for composite schedules and schedule exceptions. Create new schedules manually, via Cron expression, via text expressions, or using a fully chainable API.

Table of Contents

Features

Types of schedules supported by Later:

  • Run a report on the last day of every month at 12 AM except in December
  • Install patches on the 2nd Tuesday of every month at 4 AM
  • Gather CPU metrics every 10 mins Mon - Fri and every 30 mins Sat - Sun
  • Send out a scary e-mail at 13:13:13 every Friday the 13th

Documentation

See https://breejs.github.io/later/ for complete documentation and usage.

Install

npm:

npm install @breejs/later

Usage

Node

const later = require('@breejs/later');

console.log(later);

Browser

VanillaJS

This is the solution for you if you're just using <script> tags everywhere!

<script src="https://unpkg.com/@breejs/later"></script>
<script type="text/javascript">
  (function() {
    console.log(later);
  })();
</script>

Bundler

Assuming you are using browserify, webpack, rollup, or another bundler, you can simply follow Node usage above.

Contributors

Name Website
BunKat
Nick Baugh http://niftylettuce.com/
yrambler2001 https://yrambler2001.me/

License

MIT © BunKat

#