# niqtime

> Fork time (HH:mm) certain times to get a sequence of unique days

Latest version **1.0.2** (published 2017-11-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install niqtime
pnpm add niqtime
yarn add niqtime
bun add niqtime
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-11-05 |
| First published | 2017-11-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Viktor Kuroljov |
| Maintainers | viktor.konsta |
| Keywords | time, date, unique, sequence |

## Links

- npm: https://www.npmjs.com/package/niqtime
- Repository: https://github.com/kuroljov/niqtime
- Homepage: https://github.com/kuroljov/niqtime#readme
- Issues: https://github.com/kuroljov/niqtime/issues
- npm.io page: https://npm.io/package/niqtime

## Dependencies (1)

- [moment](https://npm.io/package/moment.md) ^2.19.1

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-11-05
- 1.0.0 — 2017-11-05

## README

# niqtime
Fork time (HH:mm) certain times to get a sequence of days

## Getting started

```js
const moment = require('moment')
const niqtime = require('niqtime')

const intervals = [
  { hours: 12, minutes: 15 },
  { hours: 19, minutes: 0 }
]

const fromDate = moment({ hours: 16 }) // optional argument, uses now by default

const nextDate = niqtime(intervals, fromDate)

console.log(nextDate()) // moment instance representing today, at 19:00
console.log(nextDate()) // moment instance representing tomorrow, at 12:15
console.log(nextDate()) // moment instance representing tomorrow, 19:00
/// etc.
```

## More docs

[kuroljov.github.io/niqtime docs page](https://kuroljov.github.io/niqtime/)

---
_Source: https://npm.io/package/niqtime · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
