@georgenet/timeslotter
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

timeslotter

Time slot generation library

Usage

const { generateTimeSlots } = require("@georgenet/timeslotter");

const slots = generateTimeSlots(
  "2020-10-30T12:00:00Z",
  "2020-10-30T17:00:00Z",
  60,
  45,
  [{ start: "2020-10-30T13:00:00Z", end: "2020-10-30T14:00:00Z" }]
);

Explanation

The code above generates these time slots

Reference

Available in JSDoc format in index.js and as TypeScript typings in index.d.ts

Readme

Keywords

none

Package Sidebar

Install

npm i @georgenet/timeslotter

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

117 kB

Total Files

8

Last publish

Collaborators

  • georgenet