# ntp-client

> Pure Javascript implementation of the NTP Client Protocol

Latest version **0.5.3** (published 2014-11-03) · 0 weekly downloads

## Install

```sh
npm install ntp-client
pnpm add ntp-client
yarn add ntp-client
bun add ntp-client
```

Provides the command `node-ntp-client`.

## Health

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

Positive: has types package; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.3 |
| Published | 2014-11-03 |
| First published | 2013-07-08 |
| Weekly downloads | 0 |
| TypeScript types | separate (@types/ntp-client) |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Clément Bourgeois |
| Maintainers | moonpyk |
| Keywords | date, ntp |

## Links

- npm: https://www.npmjs.com/package/ntp-client
- Repository: https://github.com/moonpyk/node-ntp-client
- Issues: https://github.com/moonpyk/node-ntp-client/issues
- npm.io page: https://npm.io/package/ntp-client

## 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.5.3 (latest) — 2014-11-03
- 0.5.2 — 2013-07-11
- 0.5.1 — 2013-07-08
- 0.5.0 — 2013-07-08

## README

# ntp-client [![Build Status](https://secure.travis-ci.org/moonpyk/node-ntp-client.png?branch=master)](http://travis-ci.org/moonpyk/node-ntp-client)

Pure Javascript implementation of the NTP Client Protocol

## Getting Started
Install the module with: `npm install ntp-client`

```javascript
var ntpClient = require('ntp-client');

ntpClient.getNetworkTime("pool.ntp.org", 123, function(err, date) {
    if(err) {
        console.error(err);
        return;
    }

    console.log("Current time : ");
    console.log(date); // Mon Jul 08 2013 21:31:31 GMT+0200 (Paris, Madrid (heure d’été))
});
```

## Contributors
 * Clément Bourgeois (https://github.com/moonpyk)
 * Callan Bryant (https://github.com/naggie)

## License
Copyright (c) 2014 Clément Bourgeois
Licensed under the MIT license.

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