# @20i/timesync

> Small library to sync time to a time server

Latest version **1.1.9** (published 2020-07-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install @20i/timesync
pnpm add @20i/timesync
yarn add @20i/timesync
bun add @20i/timesync
```

## 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.1.9 |
| Published | 2020-07-03 |
| First published | 2019-12-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 17.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | aeryne, and0r, cavemanagz, dan20i, keith20i, laurelbenson, mckelveygreg, mesqueeb, nedson, nikki-20i, trevordilley, vvolfster, wilblack, zabaat |

## Links

- npm: https://www.npmjs.com/package/@20i/timesync
- npm.io page: https://npm.io/package/@20i/timesync

## Dependencies (2)

- [moment](https://npm.io/package/moment.md) ^2.24.0
- [timesync-fork-wolf](https://npm.io/package/timesync-fork-wolf.md) ^1.0.7

## Recent versions

- 1.1.9 (latest) — 2020-07-03
- 1.1.4 — 2020-06-13
- 1.1.3 — 2020-06-13
- 1.1.2 — 2020-06-13
- 1.1.1 — 2020-06-13
- 1.1.0 — 2020-06-13
- 1.0.36 — 2020-02-28
- 1.0.24 — 2020-01-23
- 1.0.20 — 2019-12-24
- 1.0.19 — 2019-12-20
- 1.0.18 — 2019-12-20
- 1.0.17 — 2019-12-20
- 1.0.16 — 2019-12-19

## README

# @20i/timesync

This library provides a way to get synchronized Time with a time server (20i time server by default)

```javascript
import timesync from "@20i/timesync"

async function() {
    await timesync.sync({ delay: 50 })
    console.log("offsetMs", timesync.offsetMs)
    console.log("moment", timesync.now().toISOString())
}
```

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