1.0.3 • Published 4 years ago

@georgenet/timeslotter v1.0.3

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

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

npm.io

Reference

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

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago