# delta-t

> A little utility that allows calculating and keeping track of differences in values. Default keeps track of time.

Latest version **0.0.16** (published 2017-09-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install delta-t
pnpm add delta-t
yarn add delta-t
bun add delta-t
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.16 |
| Published | 2017-09-06 |
| First published | 2017-09-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | tymski |
| Maintainers | tymski |
| Keywords | delta, difference, time |

## Links

- npm: https://www.npmjs.com/package/delta-t
- Repository: https://github.com/Tymski/delta-t
- Homepage: https://github.com/Tymski/delta-t#readme
- Issues: https://github.com/Tymski/delta-t/issues
- npm.io page: https://npm.io/package/delta-t

## 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

- 0.0.16 (latest) — 2017-09-06
- 0.0.15 — 2017-09-06
- 0.0.1 — 2017-09-04

## README

### This is an early draft of Δt

Package delta-t (Δt) provides a class that you can use to create instances of deltas.
Deltas are differences in values, for default it is difference in time (performance.now() with Date.now() fallback)


## Example1: keeping track of time passed between frames.
```JavaScript
const Δ = require('delta-t');

Δt = new Δ();

setInterval(function(){
    Δt.update();
    console.log(Number(Δt));
},17);
```

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