Socket
Socket
Sign inDemoInstall

@breejs/later

Package Overview
Dependencies
0
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @breejs/later

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


Version published
Weekly downloads
151K
increased by4.25%
Maintainers
5
Install size
460 kB
Created
Weekly downloads
 

Readme

Source

@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

NameWebsite
BunKat
Nick Baughhttp://niftylettuce.com/
yrambler2001https://yrambler2001.me/

License

MIT © BunKat

Keywords

FAQs

Last updated on 28 Nov 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc