{"_id":"nano-time","_rev":"2922466","name":"nano-time","description":"Current Time in Nanoseconds","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"ksmithson","email":"smitt04@gmail.com"}],"time":{"modified":"2023-02-14T06:11:07.000Z","created":"2016-10-17T22:32:11.565Z","1.0.0":"2016-10-17T22:32:11.565Z"},"users":{},"author":{"name":"Kevin Smithson","email":"ksmithson@sazze.com"},"repository":{"type":"git","url":"git+https://github.com/sazze/node-nanotime.git"},"versions":{"1.0.0":{"name":"nano-time","version":"1.0.0","description":"Current Time in Nanoseconds","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/sazze/node-nanotime.git"},"keywords":["nanoseconds","time","date","current","time","microseconds"],"author":{"name":"Kevin Smithson","email":"ksmithson@sazze.com"},"license":"ISC","bugs":{"url":"https://github.com/sazze/node-nanotime/issues"},"homepage":"https://github.com/sazze/node-nanotime#readme","dependencies":{"big-integer":"^1.6.16"},"gitHead":"bce149f50044a70798a3466d34e4a0feb5e1a876","_id":"nano-time@1.0.0","_shasum":"b0554f69ad89e22d0907f7a12b0993a5d96137ef","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"ksmithson","email":"ksmithson@pocketly.com"},"dist":{"shasum":"b0554f69ad89e22d0907f7a12b0993a5d96137ef","size":1084,"noattachment":false,"key":"/nano-time/-/nano-time-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nano-time/download/nano-time-1.0.0.tgz"},"maintainers":[{"name":"ksmithson","email":"smitt04@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/nano-time-1.0.0.tgz_1476743531308_0.4322411548346281"},"directories":{},"publish_time":1476743531565,"_hasShrinkwrap":false,"_cnpm_publish_time":1476743531565,"_cnpmcore_publish_time":"2021-12-16T13:19:08.983Z"}},"readme":"# NanoTime\n\nGets the current time in nanoseconds or microseconds.\n\nIn node.js you can get high resolution time with `process.hrtime()`, but it is from an unknown relative time, not epoch. So this library helps that by calculating the difference and adding it to the current time.\n\n## Usage\n\nSince javascript can't hold a nanosecond as an INT safely (_Number.MAX_SAFE_INTEGER_), we return a string instead.\n\n```js\nconst now = require('nano-time');\n\nnow(); // '1476742925219947761' (returns a string)\nnow.micro(); // '1476742921398373'\nnow.microseconds(); // alias for now.micro();\n```","_attachments":{},"homepage":"https://github.com/sazze/node-nanotime#readme","bugs":{"url":"https://github.com/sazze/node-nanotime/issues"},"license":"ISC"}