{"_id":"expires","_rev":"7-23220c1ebaa43358f7831bd45d2ee61d","name":"expires","description":"Simple expiration helper","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.0":{"name":"expires","version":"0.0.0","description":"Simple expiration helper","main":"lib/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/UmbraEngineering/node-expires"},"keywords":["expiration","timestamp","date"],"author":{"name":"James Brumond"},"license":"MIT/GPL","_id":"expires@0.0.0","dist":{"shasum":"5318c8b2fb525606c8bb73b4b84b31ec52b35586","tarball":"https://registry.npmjs.org/expires/-/expires-0.0.0.tgz","integrity":"sha512-8KdFawt3xvq+qOyRkWe2rvLPeXQQWLaKXsEFMhku142ONJzEO/6DF21IHVC0RF4qJA/bfz86iKK+Wm5zLpXi4g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRZRLU8FZ75GPMMoBLmA4PldEAQchQPCNsswV8JCNuiQIhAKaCUDs/GiI5wgxaZrqZCWyUP6qIzR825vSMsx/Fyev1"}]},"readme":"","maintainers":[{"name":"k","email":"kbjr14@gmail.com"}]},"0.0.1":{"name":"expires","version":"0.0.1","description":"Simple expiration helper","main":"lib/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/UmbraEngineering/node-expires"},"keywords":["expiration","timestamp","date"],"author":{"name":"James Brumond"},"license":"MIT/GPL","readme":"# node-expires\n\nSimple Node.js expiration helper\n\n## Install\n\n```bash\n$ npm install expires\n```\n\n## Usage\n\n```javascript\nvar expires = require('expires');\n\n// Returns some timestamp like 1341151672247\nvar timestamp = expires.after('2 seconds');\n\n// Then it can be tested for expiration\nexpires.expired(timestamp);  // false\nsetTimeout(function() {\n\texpires.expired(timestamp);  // true\n}, 2500);\n```\n\n### Supported Units\n\n* \"ms\", \"millisecond(s)\"\n* \"sec(s)\", \"second(s)\"\n* \"min(s)\", \"minute(s)\"\n* \"hr(s)\", \"hour(s)\"\n* \"day(s)\"\n* \"wk(s)\", \"week(s)\"\n* \"yr(s)\", \"year(s)\"\n\n### Fractions\n\nAlso completely valid are fractional values, such as the following:\n\n```javascript\nexpires.after('0.5 hours');\nexpires.after('1/2 hours');\n\n// A bit extreme, but still valid\nexpires.after('2.3/4.5 hours');\n```\n\n","readmeFilename":"readme.md","bugs":{"url":"https://github.com/UmbraEngineering/node-expires/issues"},"_id":"expires@0.0.1","dist":{"shasum":"aff84cfb839b726aebe96247517235da3c070be3","tarball":"https://registry.npmjs.org/expires/-/expires-0.0.1.tgz","integrity":"sha512-+SaOcJKOxfPK2FxDy/7C8iQmLGAUFmEWSQJIeJuMSwaf5VPcRccAsM7fajieKFC2ReHaBQ/eThBrmYZ1i+QDrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfIWxKTdhNmEZwi+nDwbYoNooOPJSRgqU5qo9G4rY6hQIhAOl2cQgZPyKJUmu9YK8AT95rMXJ3EablIpM5N1OQq3hj"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"k","email":"kbjr14@gmail.com"},"maintainers":[{"name":"k","email":"kbjr14@gmail.com"}]}},"readme":"","maintainers":[{"name":"k","email":"kbjr14@gmail.com"}],"time":{"modified":"2022-06-17T22:02:58.789Z","created":"2012-07-01T12:41:38.877Z","0.0.0":"2012-07-01T12:41:41.576Z","0.0.1":"2013-10-25T03:47:37.465Z"},"author":{"name":"James Brumond"},"repository":{"type":"git","url":"git://github.com/UmbraEngineering/node-expires"}}