updated sys and created publi

This commit is contained in:
Bachir Soussi Chiadmi
2017-12-21 18:09:49 +01:00
parent 2a6e2ff863
commit cefd1c2ad0
9509 changed files with 744901 additions and 32263 deletions
+15 -42
View File
@@ -1,45 +1,33 @@
{
"_args": [
[
{
"raw": "sntp@1.x.x",
"scope": null,
"escapedName": "sntp",
"name": "sntp",
"rawSpec": "1.x.x",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/hawk"
"sntp@1.0.9",
"/mnt/Data/bach/Documents/ola/OLA#5/ola5doc/sys"
]
],
"_from": "sntp@>=1.0.0 <2.0.0",
"_development": true,
"_from": "sntp@1.0.9",
"_id": "sntp@1.0.9",
"_inCache": true,
"_inBundle": false,
"_integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=",
"_location": "/sntp",
"_npmUser": {
"name": "hueniverse",
"email": "eran@hueniverse.com"
},
"_npmVersion": "1.4.23",
"_phantomChildren": {},
"_requested": {
"raw": "sntp@1.x.x",
"scope": null,
"escapedName": "sntp",
"type": "version",
"registry": true,
"raw": "sntp@1.0.9",
"name": "sntp",
"rawSpec": "1.x.x",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
"escapedName": "sntp",
"rawSpec": "1.0.9",
"saveSpec": null,
"fetchSpec": "1.0.9"
},
"_requiredBy": [
"/hawk"
],
"_resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz",
"_shasum": "6541184cc90aeea6c6e7b35e2659082443c66198",
"_shrinkwrap": null,
"_spec": "sntp@1.x.x",
"_where": "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/hawk",
"_spec": "1.0.9",
"_where": "/mnt/Data/bach/Documents/ola/OLA#5/ola5doc/sys",
"author": {
"name": "Eran Hammer",
"email": "eran@hammer.io",
@@ -56,15 +44,9 @@
"devDependencies": {
"lab": "4.x.x"
},
"directories": {},
"dist": {
"shasum": "6541184cc90aeea6c6e7b35e2659082443c66198",
"tarball": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz"
},
"engines": {
"node": ">=0.8.0"
},
"gitHead": "ee2e35284f684609990681734d39010cd356d7da",
"homepage": "https://github.com/hueniverse/sntp#readme",
"keywords": [
"sntp",
@@ -78,16 +60,7 @@
}
],
"main": "index",
"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"