{"_id":"tiny-human-time","_rev":"5-a397ad0c104ea84baa9fb8ada7366365","name":"tiny-human-time","description":"A tiny module for human readable timespans.","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"tiny-human-time","version":"1.0.0","description":"A tiny module for human readable timespans.","main":"index.js","dependencies":{},"devDependencies":{"mocha":"^2.4.5","moment":"^2.11.2"},"engines":{"node":">=4"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/danasilver/tiny-human-time.git"},"keywords":["tiny","time","humanize","human","timespan","timedelta"],"author":{"name":"Dana Silver","email":"dsilver1221@gmail.com","url":"http://www.danasilver.org"},"license":"MIT","bugs":{"url":"https://github.com/danasilver/tiny-human-time/issues"},"homepage":"https://github.com/danasilver/tiny-human-time#readme","gitHead":"8bc2a488072564649c7bb407394942a5dc48d0cb","_id":"tiny-human-time@1.0.0","_shasum":"fc27eb0ccce217fa637feece47f5ede46b299137","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.1","_npmUser":{"name":"danasilver","email":"dsilver1221@gmail.com"},"dist":{"shasum":"fc27eb0ccce217fa637feece47f5ede46b299137","tarball":"https://registry.npmjs.org/tiny-human-time/-/tiny-human-time-1.0.0.tgz","integrity":"sha512-men8j2tf3+WljCO1A718FaS4Loeg+49QU/DqFSZwiO3s/mbk6TGP4BEMNTG/Ajnxbju53qnDNDIyHCB5C8s1xQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZLoSjHKJexEHjdAIbvw+5rFT8VUJ8OuIv6b1thX1HuwIgbNKWtgvQahz6F8eAtf2gcch90dGBgldPBbFLM+davIo="}]},"maintainers":[{"name":"danasilver","email":"dsilver1221@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tiny-human-time-1.0.0.tgz_1457192393383_0.35485108755528927"}},"1.1.0":{"name":"tiny-human-time","version":"1.1.0","description":"A tiny module for human readable timespans.","main":"index.js","dependencies":{},"devDependencies":{"mocha":"^2.4.5","moment":"^2.11.2"},"engines":{"node":">=4"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/danasilver/tiny-human-time.git"},"keywords":["tiny","time","humanize","human","timespan","timedelta"],"author":{"name":"Dana Silver","email":"dsilver1221@gmail.com","url":"http://www.danasilver.org"},"license":"MIT","bugs":{"url":"https://github.com/danasilver/tiny-human-time/issues"},"homepage":"https://github.com/danasilver/tiny-human-time#readme","gitHead":"fdd41c4e1db7fdf12a22f1d5c304107cd60b1df3","_id":"tiny-human-time@1.1.0","_shasum":"ae847f98c4159c2a9ed7ad86c1cb985f6ff9f95c","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.1","_npmUser":{"name":"danasilver","email":"dsilver1221@gmail.com"},"dist":{"shasum":"ae847f98c4159c2a9ed7ad86c1cb985f6ff9f95c","tarball":"https://registry.npmjs.org/tiny-human-time/-/tiny-human-time-1.1.0.tgz","integrity":"sha512-bO5bo2D+IuDNwUnCVdb51mi9KQN6CZ6gSSZE1HgIF2CUue8NAC0aEugY0lvVWF8qQwCbhd8EkCMmYJsYmamEfw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOA7cXq+nH4gmfsdCZDD0ZfBqigtD2HmDgFBzI+MU4CgIgXxuTY6r0TQGe3aPrcWzVohq4uuhrKVxsyGmbp/cnBOI="}]},"maintainers":[{"name":"danasilver","email":"dsilver1221@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/tiny-human-time-1.1.0.tgz_1457225947180_0.22847889317199588"}},"1.2.0":{"name":"tiny-human-time","version":"1.2.0","description":"A tiny module for human readable timespans.","main":"index.js","dependencies":{},"devDependencies":{"mocha":"^2.4.5","moment":"^2.11.2"},"engines":{"node":">=4"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/danasilver/tiny-human-time.git"},"keywords":["tiny","time","humanize","human","timespan","timedelta"],"author":{"name":"Dana Silver","email":"dsilver1221@gmail.com","url":"http://www.danasilver.org"},"contributors":[{"name":"Tristan Davies","email":"github@tristan.io"}],"license":"MIT","bugs":{"url":"https://github.com/danasilver/tiny-human-time/issues"},"homepage":"https://github.com/danasilver/tiny-human-time#readme","gitHead":"e14e6bb68645e438fee01897445cdf4a751fa1c5","_id":"tiny-human-time@1.2.0","_shasum":"0c4a425940e053e2d31d903d6f03d38cfb977860","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.1","_npmUser":{"name":"danasilver","email":"dsilver1221@gmail.com"},"dist":{"shasum":"0c4a425940e053e2d31d903d6f03d38cfb977860","tarball":"https://registry.npmjs.org/tiny-human-time/-/tiny-human-time-1.2.0.tgz","integrity":"sha512-ubFNn/t40vgIvRgQhu3jp/ouBczBube3r50JYvzGb/Am1T37hCSKVNBFlx99McaWgheQE4nmMOj82WHDrGoqDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGW4g+oW1ndgX2zuPrX1YHBF+5Y4/cpOHZ5GrUm+OvYzAiEAum5JQLuxg1fZimaakE9iQ+A3pMMAfZkmoJeQ4nsr8n8="}]},"maintainers":[{"name":"danasilver","email":"dsilver1221@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/tiny-human-time-1.2.0.tgz_1457293107629_0.6300544538535178"}}},"readme":"<h3 align=\"center\">\n  <img src=\"http://i.giphy.com/DluPT7dZ0uXg4.gif\">\n</h3>\n\n<h3 align=\"center\">Tiny Human Time</h3>\n\n<p align=\"center\">\n  A tiny module for human readable timespans.\n</p>\n\n[![Build Status](https://travis-ci.org/danasilver/tiny-human-time.svg?branch=master)](https://travis-ci.org/danasilver/tiny-human-time)\n\n## API\n\n### `humanize(t1, t2 [, units])`\n\nWhat you get when you `require('tiny-human-time')`.\n\n`t1` and `t2` are instances of `Date` or integers whose value relative to one\nanother is given in milliseconds. Their order doesn't matter.\n\nIf `t2` is not given, `t1` alone will be used as the timespan relative to 0.\n\nEither argument can be an array of the form `[seconds, nanoseconds]`, like\nthat produced by\n[process.hrtime()](https://nodejs.org/api/process.html#process_process_hrtime).\n\nAn optional last argument, `units` has possible values `short` and `long`,\ndefaulting to `long`. `units` can be given as the last argument even if\n`t2` is not given.\n\nReturns the converted value and the greatest matching unit\nwithout going over. For example, `23 hours` will be followed by `1 day`.\n\n### `humanize.short(t1, t2)`\n\nA convenience method to use `short` units. The possible arguments for `t1` and\n`t2` are the same as `humanize`.\n\n## Supports:\n\n - nanoseconds\n - microseconds\n - milliseconds\n - seconds\n - minutes\n - hours\n - days\n - weeks\n - years\n\n## Usage\n\n```js\nconst humanize = require('tiny-human-time');\n\nconst now = new Date(2016, 3, 5);\nconst later = new Date(2016, 3, 6);\n\nhumanize(now, later);\n// => 1 day\n```\n\n```js\nconst humanize = require('tiny-human-time');\n\nconst start = process.hrtime()\n// and then a miracle occurs\nconst elapsed = process.hrtime(start)\n\nhumanize(elapsed)\n// => 23 microseconds\n```\n\n```js\nconst humanize = require('tiny-human-time').short;\n\nhumanize(1)\n// => 1ms\n```\n","maintainers":[{"name":"danasilver","email":"dsilver1221@gmail.com"}],"time":{"modified":"2022-06-27T06:59:05.489Z","created":"2016-03-05T15:39:56.479Z","1.0.0":"2016-03-05T15:39:56.479Z","1.1.0":"2016-03-06T00:59:10.599Z","1.2.0":"2016-03-06T19:38:30.793Z"},"homepage":"https://github.com/danasilver/tiny-human-time#readme","keywords":["tiny","time","humanize","human","timespan","timedelta"],"repository":{"type":"git","url":"git+https://github.com/danasilver/tiny-human-time.git"},"author":{"name":"Dana Silver","email":"dsilver1221@gmail.com","url":"http://www.danasilver.org"},"bugs":{"url":"https://github.com/danasilver/tiny-human-time/issues"},"license":"MIT","readmeFilename":"README.md","contributors":[{"name":"Tristan Davies","email":"github@tristan.io"}]}