UNPKG

ntp-time-sync

Version:

Fetches the current time from NTP servers and returns offset information

77 lines (76 loc) 2.32 kB
{ "name": "ntp-time-sync", "version": "0.6.0", "description": "Fetches the current time from NTP servers and returns offset information", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/cjs/index.d.ts", "type": "commonjs", "exports": { ".": { "import": { "types": "./dist/esm/index.d.ts", "default": "./dist/esm/index.js" }, "require": { "types": "./dist/cjs/index.d.ts", "default": "./dist/cjs/index.js" } }, "./package.json": "./package.json" }, "sideEffects": false, "dependencies": { "ntp-packet-parser": "^0.6.1" }, "devDependencies": { "@arethetypeswrong/cli": "0.18.4", "@types/node": "^20 || ^22 || ^24 || ^25", "prettier": "3.9.3", "publint": "0.3.18", "ts-node": "10.9.2", "typescript": "6.0.3" }, "scripts": { "prepublishOnly": "yarn prettier:lint && yarn build", "clean": "rm -rf dist", "build:cjs": "tsc -p tsconfig.cjs.json && node scripts/write-package-type.mjs cjs", "build:esm": "tsc -p tsconfig.esm.json && node scripts/write-package-type.mjs esm", "build": "yarn build:cjs && yarn build:esm", "test:integration:cjs": "node test/integration/cjs.cjs", "test:integration:esm": "node test/integration/esm.mjs", "test:integration:deno": "deno run --allow-read test/integration/deno.ts && deno run --allow-read test/integration/deno-esm.ts", "test:integration": "yarn test:integration:cjs && yarn test:integration:esm", "test:unit": "node scripts/run-unit-tests.mjs", "prettier": "prettier --write src/**/*.ts", "prettier:lint": "prettier --list-different src/**/*.ts", "verify:pack": "npm pack --dry-run", "verify:publint": "publint", "verify:attw": "attw --pack .", "verify:package": "yarn build && yarn verify:pack && yarn verify:publint && yarn verify:attw" }, "keywords": [ "ntp", "clock", "sync", "parser", "udp", "time" ], "author": "Laurens Stötzel", "repository": { "type": "git", "url": "git+https://github.com/buffcode/ntp-time-sync.git" }, "files": [ "dist" ], "license": "GPL-3.0", "prettier": { "printWidth": 120, "trailingComma": "es5" }, "engines": { "node": "^20 || ^22 || ^24 || ^25" } }