All Projects → song940 → Node Ntp

song940 / Node Ntp

Licence: mit
⌛️ simple network time protocol implementation for node.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Node Ntp

React Timekeeper
Google Keep app inspired time picker for react 🕓
Stars: ✭ 651 (+3729.41%)
Mutual labels:  time
Node Minecraft Protocol
Parse and serialize minecraft packets, plus authentication and encryption.
Stars: ✭ 697 (+4000%)
Mutual labels:  protocol
Jsonhelper
✌ Convert anything into anything in one operation; JSON data into class instances, hex strings into UIColor/NSColor, y/n strings to booleans, arrays and dictionaries of these; anything you can make sense of!
Stars: ✭ 792 (+4558.82%)
Mutual labels:  protocol
Multihash
Self describing hashes - for future proofing
Stars: ✭ 656 (+3758.82%)
Mutual labels:  protocol
Xviz
A protocol for real-time transfer and visualization of autonomy data
Stars: ✭ 691 (+3964.71%)
Mutual labels:  protocol
Scroll Through Time
⌛️ 🎩 🐇 Two fingers scroll moves through time instead of space
Stars: ✭ 720 (+4135.29%)
Mutual labels:  time
Quickfixj
QuickFIX/J is a full featured messaging engine for the FIX protocol. - This is the official project repository.
Stars: ✭ 638 (+3652.94%)
Mutual labels:  protocol
Graph Node
Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
Stars: ✭ 884 (+5100%)
Mutual labels:  protocol
Date Fns
⏳ Modern JavaScript date utility library ⌛️
Stars: ✭ 27,650 (+162547.06%)
Mutual labels:  time
Lbry Sdk
The LBRY SDK for building decentralized, censorship resistant, monetized, digital content apps.
Stars: ✭ 7,169 (+42070.59%)
Mutual labels:  protocol
Android Ago
An Android TextView that always displays an auto refreshing relative time span with respect to a reference time
Stars: ✭ 669 (+3835.29%)
Mutual labels:  time
Python Progressbar
Progressbar 2 - A progress bar for Python 2 and Python 3 - "pip install progressbar2"
Stars: ✭ 682 (+3911.76%)
Mutual labels:  time
Examples
A collection of TLA+ specifications of varying complexities
Stars: ✭ 720 (+4135.29%)
Mutual labels:  protocol
Ipban
IPBan Monitors failed logins and bad behavior and bans ip addresses on Windows and Linux. Highly configurable, lean and powerful. Learn more at -->
Stars: ✭ 652 (+3735.29%)
Mutual labels:  protocol
Starscream
Websockets in swift for iOS and OSX
Stars: ✭ 7,105 (+41694.12%)
Mutual labels:  protocol
Dhcpwn
All your IPs are belong to us.
Stars: ✭ 642 (+3676.47%)
Mutual labels:  protocol
Vue Ctk Date Time Picker
VueJS component to select dates & time, including a range mode
Stars: ✭ 707 (+4058.82%)
Mutual labels:  time
Translatedjs
Internationalization and localization for JavaScript and Node.js
Stars: ✭ 17 (+0%)
Mutual labels:  time
Chronophore
Desktop app for tracking student sign-ins in a tutoring center.
Stars: ✭ 6 (-64.71%)
Mutual labels:  time
Lsquic
LiteSpeed QUIC and HTTP/3 Library
Stars: ✭ 727 (+4176.47%)
Mutual labels:  protocol

ntp2

simple network time protocol implementation for node.js

NPM version Build Status

Installation

$ npm i ntp2

Example

const ntp = require('ntp2');

ntp.time(function(err, response){
  console.log('The network time is :', response.time);
});

sntp server

const ntp = require('ntp2');

const server = ntp.createServer(function(message, response){
  console.log('server message:', message);
  message.transmitTimestamp = Date.now();
  response(message);
}).listen(123, function(err){
  console.log('server is running at %s', server.address().port);
});

API

  • ntp2.Server()
  • ntp2.Client()
  • ntp2.createServer()

SPEC

Contributing

  • Fork this Repo first
  • Clone your Repo
  • Install dependencies by $ npm install
  • Checkout a feature branch
  • Feel free to add your features
  • Make sure your features are fully tested
  • Publish your local branch, Open a pull request
  • Enjoy hacking <3

MIT license

Copyright (c) 2016 Lsong <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].