102 lines
4.4 KiB
JSON
Executable File
102 lines
4.4 KiB
JSON
Executable File
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "sntp@2.x.x",
|
|
"scope": null,
|
|
"escapedName": "sntp",
|
|
"name": "sntp",
|
|
"rawSpec": "2.x.x",
|
|
"spec": ">=2.0.0 <3.0.0",
|
|
"type": "range"
|
|
},
|
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/hawk"
|
|
]
|
|
],
|
|
"_from": "sntp@>=2.0.0 <3.0.0",
|
|
"_id": "sntp@2.1.0",
|
|
"_inCache": true,
|
|
"_location": "/sntp",
|
|
"_nodeVersion": "8.7.0",
|
|
"_npmOperationalInternal": {
|
|
"host": "s3://npm-registry-packages",
|
|
"tmp": "tmp/sntp-2.1.0.tgz_1508979210264_0.7410221791360527"
|
|
},
|
|
"_npmUser": {
|
|
"name": "hueniverse",
|
|
"email": "eran@hammer.io"
|
|
},
|
|
"_npmVersion": "5.5.1",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "sntp@2.x.x",
|
|
"scope": null,
|
|
"escapedName": "sntp",
|
|
"name": "sntp",
|
|
"rawSpec": "2.x.x",
|
|
"spec": ">=2.0.0 <3.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/hawk"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/sntp/-/sntp-2.1.0.tgz",
|
|
"_shasum": "2c6cec14fedc2222739caf9b5c3d85d1cc5a2cc8",
|
|
"_shrinkwrap": null,
|
|
"_spec": "sntp@2.x.x",
|
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/hawk",
|
|
"author": {
|
|
"name": "Eran Hammer",
|
|
"email": "eran@hammer.io",
|
|
"url": "http://hueniverse.com"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/hueniverse/sntp/issues"
|
|
},
|
|
"dependencies": {
|
|
"hoek": "4.x.x"
|
|
},
|
|
"description": "SNTP Client",
|
|
"devDependencies": {
|
|
"code": "4.x.x",
|
|
"lab": "14.x.x"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"integrity": "sha512-FL1b58BDrqS3A11lJ0zEdnJ3UOKqVxawAkF3k7F0CVN7VQ34aZrV+G8BZ1WC9ZL7NyrwsW0oviwsWDgRuVYtJg==",
|
|
"shasum": "2c6cec14fedc2222739caf9b5c3d85d1cc5a2cc8",
|
|
"tarball": "https://registry.npmjs.org/sntp/-/sntp-2.1.0.tgz"
|
|
},
|
|
"engines": {
|
|
"node": ">=4.0.0"
|
|
},
|
|
"gitHead": "4ea16d6c111c205c3dc1f8e95c635108ed3f4d6b",
|
|
"homepage": "https://github.com/hueniverse/sntp#readme",
|
|
"keywords": [
|
|
"sntp",
|
|
"ntp",
|
|
"time"
|
|
],
|
|
"license": "BSD-3-Clause",
|
|
"main": "lib/index.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "hueniverse",
|
|
"email": "eran@hueniverse.com"
|
|
}
|
|
],
|
|
"name": "sntp",
|
|
"optionalDependencies": {},
|
|
"readme": "# sntp\n\nAn SNTP v4 client (RFC4330) for node. Simpy connects to the NTP or SNTP server requested and returns the server time\nalong with the roundtrip duration and clock offset. To adjust the local time to the NTP time, add the returned `t` offset\nto the local time.\n\n[![Build Status](https://secure.travis-ci.org/hueniverse/sntp.png)](http://travis-ci.org/hueniverse/sntp)\n\n# Usage\n\n```javascript\nvar Sntp = require('sntp');\n\n// All options are optional\n\nvar options = {\n host: 'nist1-sj.ustiming.org', // Defaults to pool.ntp.org\n port: 123, // Defaults to 123 (NTP)\n resolveReference: true, // Default to false (not resolving)\n timeout: 1000 // Defaults to zero (no timeout)\n};\n\n// Request server time\n\nSntp.time(options, function (err, time) {\n\n if (err) {\n console.log('Failed: ' + err.message);\n process.exit(1);\n }\n\n console.log('Local clock is off by: ' + time.t + ' milliseconds');\n process.exit(0);\n});\n```\n\nIf an application needs to maintain continuous time synchronization, the module provides a stateful method for\nquerying the current offset only when the last one is too old (defaults to daily).\n\n```javascript\n// Request offset once\n\nSntp.offset(function (err, offset) {\n\n console.log(offset); // New (served fresh)\n\n // Request offset again\n\n Sntp.offset(function (err, offset) {\n\n console.log(offset); // Identical (served from cache)\n });\n});\n```\n\nTo set a background offset refresh, start the interval and use the provided now() method. If for any reason the\nclient fails to obtain an up-to-date offset, the current system clock is used.\n\n```javascript\nvar before = Sntp.now(); // System time without offset\n\nSntp.start(function () {\n\n var now = Sntp.now(); // With offset\n Sntp.stop();\n});\n```\n\n",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/hueniverse/sntp.git"
|
|
},
|
|
"scripts": {
|
|
"test": "lab -a code -t 100 -L -m 20000",
|
|
"test-cov-html": "lab -a code -r html -o coverage.html -m 20000"
|
|
},
|
|
"version": "2.1.0"
|
|
}
|