buntp
v1.0.0
Published
🧅 A simple NTP client implementation for Bun
Readme
buntp
🧅 A simple NTP client implementation for Bun
This implementation was done following the RFC 4330.
Installation
bun add buntpUsage
import { NTPClient } from "buntp";
const client = new NTPClient("your ntp server address");
let date = await client.sync(); // Returning a Date object
let rawRes = await client.rawSync(); // Returning a Packet object (see definition at src/models.ts)