{"_id":"zeit","_rev":"63-326fab434416b63741bcc334a7e3149a","name":"zeit","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","dist-tags":{"latest":"1.3.0"},"versions":{"0.0.1":{"name":"zeit","version":"0.0.1","description":"zeit ====","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha","start":"node_modules/mocha/bin/mocha -w"},"repository":{"type":"git","url":"git://github.com/daviddenton/zeit.git"},"keywords":["time","clock","scheduler"],"author":{"name":"daviddenton"},"license":"Apache 2.0","gitHead":"6483eccd2130766837864a5b5aa4fcff5414e7a5","dependencies":{"q":"0.9.7","lodash":"2.0.0"},"devDependencies":{"moment":"2.2.1","mocha":"1.13.0","chai":"1.7.2","chai-timers":"0.2.0"},"bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"_id":"zeit@0.0.1","dist":{"shasum":"78f409416dedc3ac33f03363cdca7750c265eb91","tarball":"https://registry.npmjs.org/zeit/-/zeit-0.0.1.tgz","integrity":"sha512-EEP1jXfGXBrCAMAteugYfsOF9a2PqZk0n+RPlBjjeZnpjcQs91jKITFjP7F5u02uFcLhN+qbYmfKaLilYaIw2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB7xzzVuuyv06xVQm46U48toSymWWqZ/dpqFdKcdMoVXAiEAjTzfR9ldj27p66RMOOE8nfT8oRgrLm1Yz16SJz/YZVM="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"directories":{}},"0.0.2":{"name":"zeit","version":"0.0.2","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha","start":"node_modules/mocha/bin/mocha -w"},"repository":{"type":"git","url":"git://github.com/daviddenton/zeit.git"},"keywords":["time","clock","scheduler"],"author":{"name":"daviddenton"},"license":"Apache 2.0","gitHead":"6483eccd2130766837864a5b5aa4fcff5414e7a5","dependencies":{"q":"0.9.7","lodash":"2.0.0"},"devDependencies":{"moment":"2.2.1","mocha":"1.13.0","chai":"1.7.2","chai-timers":"0.2.0"},"bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"_id":"zeit@0.0.2","dist":{"shasum":"efab31670c37108e36ef4ce98cf7fe51818df079","tarball":"https://registry.npmjs.org/zeit/-/zeit-0.0.2.tgz","integrity":"sha512-54+VIUVMQtYNuIt9U1g5Ox14roHNvM6Lna26typsTbjjRy3AXU6rlx8GL0JIYEGGvnw/PECcfyPlfLglzQJGSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWR3NYmqjd/j/zVcOMLkfuFaLpCioEXNmohI5qPT0+JAIgdwsSKiljqKcl++82SUOI7BNxzfargHDd4BKVKi/MnGQ="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"directories":{}},"0.0.3":{"name":"zeit","version":"0.0.3","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha","start":"node_modules/mocha/bin/mocha -w"},"repository":{"type":"git","url":"git://github.com/daviddenton/zeit.git"},"keywords":["time","clock","scheduler"],"author":{"name":"daviddenton"},"license":"Apache 2.0","dependencies":{"q":"0.9.7","lodash":"2.0.0"},"devDependencies":{"moment":"2.2.1","mocha":"1.13.0","chai":"1.7.2","chai-timers":"0.2.0"},"bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"_id":"zeit@0.0.3","dist":{"shasum":"2dd6e6f4029a4c13713604edc76219bb98a9b2fd","tarball":"https://registry.npmjs.org/zeit/-/zeit-0.0.3.tgz","integrity":"sha512-adHMLdl7ZC89QAf6d07DsA5yAuqvABAbvwdVdBky4RzHtCuhspbbHj0ZWFWElohXm0dtpQXcR7g7MxxtDQaKPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXTiO4m+6BgZcsrUoxQIP6CbYtbRwSKPa5z03myf1ZaQIhAMCbd/QrkDdGtM4BtYHOFwimI107gJJoyS+f14S5ALtC"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"directories":{}},"0.0.4":{"devDependencies":{"chai-timers":"0.2.0","chai":"1.7.2","mocha":"1.13.0","moment":"2.2.1"},"dependencies":{"lodash":"2.0.0","q":"0.9.7"},"license":"Apache 2.0","name":"zeit","version":"0.0.4","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","main":"index.js","scripts":{"start":"node_modules/mocha/bin/mocha -w","test":"node_modules/mocha/bin/mocha"},"repository":{"url":"git://github.com/daviddenton/zeit.git","type":"git"},"keywords":["time","clock","scheduler"],"author":{"name":"daviddenton"},"bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"_id":"zeit@0.0.4","dist":{"shasum":"5001388c88fa60a6febc7e059d52fcbd630a28cd","tarball":"https://registry.npmjs.org/zeit/-/zeit-0.0.4.tgz","integrity":"sha512-yiG6OobTeMa9PeTW8Jdb3e2iAv0vYKY1+Nbh9l9pSHHxifY8GptKuZeCt6bzMmxoAfrP6Ju3x7xlBhbhB+NHjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjNVoEdLNpQ94qFfSxut2IT7/6VtpY4lLduh9xYf5eJwIgdGnQOQl+bNLReQv6VzVGdB1fwMg3Kcp9Q2//aBbAs/c="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"directories":{}},"0.0.5":{"author":{"name":"daviddenton"},"keywords":["time","clock","scheduler"],"repository":{"type":"git","url":"git://github.com/daviddenton/zeit.git"},"scripts":{"test":"node_modules/mocha/bin/mocha","start":"node_modules/mocha/bin/mocha -w"},"devDependencies":{"moment":"2.2.1","mocha":"1.13.0","chai":"1.7.2","chai-timers":"0.2.0"},"dependencies":{"q":"0.9.7","lodash":"2.0.0"},"license":"Apache 2.0","name":"zeit","version":"0.0.5","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","main":"index.js","bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"_id":"zeit@0.0.5","dist":{"shasum":"1ff4859fe94ecc959e88d399b40bee421aa45e68","tarball":"https://registry.npmjs.org/zeit/-/zeit-0.0.5.tgz","integrity":"sha512-1yBSHNIQISpBeeNODQSeU7jzyH9Yh4qi+wpQNiZ3li3O/VuC8eJKDdD7jmnxNIXfKJxT0n8T0DMsM2ptSgvbtw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHbEYJ6v+uXirANgbtesUq7IaQ5YjPbkbwOWtjYrkdxCAiB59wOkVZJdTrirhLpr1FrKOTuQmtMwXx6rgqJsE31m/A=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"directories":{}},"0.0.6":{"main":"index.js","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","version":"0.0.6","name":"zeit","author":{"name":"daviddenton"},"keywords":["time","clock","scheduler"],"repository":{"url":"git://github.com/daviddenton/zeit.git","type":"git"},"scripts":{"start":"node_modules/mocha/bin/mocha -w","test":"node_modules/mocha/bin/mocha"},"devDependencies":{"chai-timers":"0.2.0","chai":"1.7.2","mocha":"1.13.0","moment":"2.2.1"},"dependencies":{"lodash":"2.0.0","q":"0.9.7"},"license":"Apache 2.0","bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"_id":"zeit@0.0.6","dist":{"shasum":"d0e6008fab415928cf9826696fb0f3b41975af56","tarball":"https://registry.npmjs.org/zeit/-/zeit-0.0.6.tgz","integrity":"sha512-ovGMM8ufWe9lNdo4bwdDiFDVdCR2mwZ4OEMIYwLQUyv+bFbZZ37NZ5wglNYnOCR6tpkxLPUJ2nK9Dr2BAohCdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCHwUmHor0ztkzwljBcJZj1135NYT1ajWM2TgSkkzvOxECIAtMYXbN7bqNBAWCFvezxoYp8qnuMxM+NT77T03N+TSB"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"directories":{}},"0.0.7":{"license":"Apache 2.0","dependencies":{"q":"0.9.7","lodash":"2.0.0"},"devDependencies":{"moment":"2.2.1","mocha":"1.13.0","chai":"1.7.2","chai-timers":"0.2.0"},"main":"index.js","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","version":"0.0.7","name":"zeit","author":{"name":"daviddenton"},"keywords":["time","clock","scheduler"],"repository":{"type":"git","url":"git://github.com/daviddenton/zeit.git"},"scripts":{"test":"node_modules/mocha/bin/mocha","start":"node_modules/mocha/bin/mocha -w"},"bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"_id":"zeit@0.0.7","dist":{"shasum":"7270f3cc4196134dc3d7f7cf88ad474009d713ff","tarball":"https://registry.npmjs.org/zeit/-/zeit-0.0.7.tgz","integrity":"sha512-WhTsiiVlWkmRMKoaRRImB+0z6mmuRtUidLJsU3uIGG+g1NXk0IoJBSBIbIxoviznLC5r4vwv/0mny8uk31RYLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/ZW4W2Slot5zkz+b15tSMdTvXt28hSO5libG3IxA3KQIhALEn9Ue3MfpxlT71YrzlZnf7hldiv3D6OmWVFQJ5wK3S"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"directories":{}},"0.0.8":{"scripts":{"start":"node_modules/mocha/bin/mocha -w","test":"node_modules/mocha/bin/mocha"},"repository":{"url":"git://github.com/daviddenton/zeit.git","type":"git"},"keywords":["time","clock","scheduler"],"author":{"name":"daviddenton"},"license":"Apache 2.0","dependencies":{"lodash":"2.0.0","q":"0.9.7"},"devDependencies":{"chai-timers":"0.2.0","chai":"1.7.2","mocha":"1.13.0","moment":"2.2.1"},"main":"index.js","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","version":"0.0.8","name":"zeit","bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"_id":"zeit@0.0.8","dist":{"shasum":"4c6b05fa99bc1a8c8af49968482fda8e494de9c1","tarball":"https://registry.npmjs.org/zeit/-/zeit-0.0.8.tgz","integrity":"sha512-45Oflw3l9So2L93y0pOn1afKucmCYpVIbwMYvzzSvIRoPnChoWitv8hp+H48hEX7F1ICdfhY1rN2g+XY4Uc8Mg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwDA0rxxgGAkJwnxVNZ80MWRVq2LWSb2ytAnX/dKU8IwIgXubbywRe9B7sl2jQt2fhKp4HhyNdGwGvP9V5GX4+O64="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"directories":{}},"0.0.9":{"name":"zeit","version":"0.0.9","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha","start":"node_modules/mocha/bin/mocha -w"},"repository":{"type":"git","url":"git://github.com/daviddenton/zeit.git"},"keywords":["time","clock","scheduler"],"author":{"name":"daviddenton"},"license":"Apache 2.0","dependencies":{"q":"0.9.7","lodash":"2.0.0"},"devDependencies":{"moment":"2.2.1","mocha":"1.13.0","chai":"1.7.2","chai-timers":"0.2.0"},"bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"_id":"zeit@0.0.9","dist":{"shasum":"7579c978361e16a16b7c5af6daf8322b376bb223","tarball":"https://registry.npmjs.org/zeit/-/zeit-0.0.9.tgz","integrity":"sha512-vITea/8HfJ1hty170wCxP9NcIdUv1E/TVpSfeBG/n7e5TAVP7y6vxSBpivwup7X4qseO3WBqSYgV0ABp2YtYvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTNANFF8tceizJH9WRQHPZmHntvjq542/g9lpS3mrCfAIgZXpqo7l55vDZsOpvZf7yDyjEqHkKpgB5KJuDA487nas="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"directories":{}},"1.0.2":{"main":"index.js","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","version":"1.0.2","name":"zeit","author":{"name":"daviddenton"},"keywords":["time","clock","scheduler"],"repository":{"url":"git://github.com/daviddenton/zeit.git","type":"git"},"scripts":{"start":"node_modules/mocha/bin/mocha -w","test":"node_modules/mocha/bin/mocha"},"devDependencies":{"chai-timers":"0.2.0","chai":"1.7.2","mocha":"1.13.0"},"dependencies":{"lodash":"2.0.0","moment":"2.2.1","q":"0.9.7"},"license":"Apache 2.0","bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"_id":"zeit@1.0.2","dist":{"shasum":"5e1d9e7b0d55f4e79b92e64f94a4a25978bf2a69","tarball":"https://registry.npmjs.org/zeit/-/zeit-1.0.2.tgz","integrity":"sha512-M8gS6XgQCmdt9vRTjQLialNpT6+0i5YbVeCYqr/s4EHe690tDBt1YlxLzCHKrjcgu5+ZAVC99zmEroL1SFBv5w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDba0xRJZ6tzjNexG8UX/RDWZ90YJ//BVUSraUeheyxPgIhAKE+LFjL5pLTUpJaOucykvlveeD/KdRWSbZQw96VKAMR"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"directories":{}},"1.0.3":{"license":"Apache 2.0","dependencies":{"q":"0.9.7","moment":"2.2.1","lodash":"2.0.0"},"devDependencies":{"mocha":"1.13.0","chai":"1.7.2","chai-timers":"0.2.0"},"main":"index.js","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","version":"1.0.3","name":"zeit","author":{"name":"daviddenton"},"keywords":["time","clock","task","promise","timer","scheduler"],"repository":{"type":"git","url":"git://github.com/daviddenton/zeit.git"},"scripts":{"test":"node_modules/mocha/bin/mocha","start":"node_modules/mocha/bin/mocha -w"},"bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"_id":"zeit@1.0.3","dist":{"shasum":"c784a6a4b318ef89ad3734ad4f466798cfa5a9c8","tarball":"https://registry.npmjs.org/zeit/-/zeit-1.0.3.tgz","integrity":"sha512-1gLXsn7e9rJnL2qAEYjZvjW7FvOaABZoixWIRSrCoLKfYdTwQGmb5xPQGpfHuElOK3Ce88ILBdK/yJlbcy9wSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEjCPj+UBXFjNBODyLa0HMKRFiAUha8E+E+sxmfXGyCmAiEAmbe5IIS7PjowLwU89tyvDcFTDabM6juPp6EURhHpKNQ="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"directories":{}},"1.0.4":{"files":["index.js","LICENSE","lib","test","examples"],"scripts":{"start":"node_modules/mocha/bin/mocha -w","test":"node_modules/mocha/bin/mocha"},"repository":{"url":"git://github.com/daviddenton/zeit.git","type":"git"},"keywords":["time","clock","task","promise","timer","scheduler"],"author":{"name":"daviddenton"},"license":"Apache 2.0","dependencies":{"lodash":"2.0.0","moment":"2.2.1","q":"0.9.7"},"devDependencies":{"chai-timers":"0.2.0","chai":"1.7.2","mocha":"1.13.0"},"main":"index.js","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","version":"1.0.4","name":"zeit","bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"_id":"zeit@1.0.4","dist":{"shasum":"ed8f609f5af35c774d467a20aa4da898130007a6","tarball":"https://registry.npmjs.org/zeit/-/zeit-1.0.4.tgz","integrity":"sha512-HKPCJiYz00NLtYRsOPN8b4LgltMp8Pw3SxEC71Vt6o/DwRwNYZJH0BWuRHFLVfEhHMt31/tTjkps7fPrQE+4sw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICh9VlXC3f2z2vEw3wEi+qfbE9X1GJeSddR8Bt3Pnpp5AiB1L0FxzsBYtz+un6gb0nnJPWhCDvTLPNcte/iawyFV0A=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"directories":{}},"1.0.5":{"name":"zeit","version":"1.0.5","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","main":"index.js","devDependencies":{"mocha":"1.13.0","chai":"1.7.2","chai-timers":"0.2.0"},"files":["index.js","LICENSE","lib","test","examples"],"scripts":{"test":"node_modules/mocha/bin/mocha","start":"node_modules/mocha/bin/mocha -w"},"repository":{"type":"git","url":"git://github.com/daviddenton/zeit.git"},"keywords":["time","clock","task","promise","timer","scheduler"],"author":{"name":"daviddenton"},"license":"Apache 2.0","dependencies":{"q":"0.9.7","moment":"2.2.1","lodash":"2.0.0"},"bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"_id":"zeit@1.0.5","dist":{"shasum":"e149304eb02d3b258a9e7b3813c502870e146160","tarball":"https://registry.npmjs.org/zeit/-/zeit-1.0.5.tgz","integrity":"sha512-RERgORsTTVAIztvbTusxE0CzILnnbizZ/WifgU2bVcUcCFkrYMkucIhTQCRmvqEhobEzhcmGkVhdwWfvzi/XZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICHJWHuYPRhpQyz7smxELknjmusvsxmVitMipWmScfDfAiBdbj6epv9OSAfLJEgBbnLLmqCb5NWVq9t7xeZ831cq8g=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"directories":{}},"1.0.6":{"dependencies":{"lodash":"2.0.0","moment":"2.2.1","q":"0.9.7"},"license":"Apache 2.0","author":{"name":"daviddenton"},"keywords":["time","clock","task","promise","timer","scheduler"],"name":"zeit","version":"1.0.6","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","main":"index.js","devDependencies":{"chai-timers":"0.2.0","chai":"1.7.2","mocha":"1.13.0"},"files":["index.js","LICENSE","lib","test","examples"],"scripts":{"start":"node_modules/mocha/bin/mocha -w","test":"node_modules/mocha/bin/mocha"},"repository":{"url":"git://github.com/daviddenton/zeit.git","type":"git"},"bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"_id":"zeit@1.0.6","dist":{"shasum":"07a63485d02111e8efbcce7a1dabaf12e90aa10d","tarball":"https://registry.npmjs.org/zeit/-/zeit-1.0.6.tgz","integrity":"sha512-TVuOja7ymk9IFzeUxka4yIWwichC7DVhMQpnkTBapPBk7UFbdi/8SGtLO1wUmz0jBYDqOsEyG1xWECNk6ohKSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIArieHc2h963gSY689YouKgr+gUBfyRsEZjSZo1ATmtoAiEAx7BhVqfTVAyOopL9YXF+zk+I62vGpZcJS6V8VtTXUCs="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"directories":{}},"1.1.1":{"files":["index.js","LICENSE","lib","test","examples"],"scripts":{"start":"node_modules/mocha/bin/mocha -w","test":"node_modules/mocha/bin/mocha"},"repository":{"url":"git://github.com/daviddenton/zeit.git","type":"git"},"author":{"name":"daviddenton"},"keywords":["time","clock","task","promise","timer","scheduler"],"license":"Apache 2.0","dependencies":{"lodash":"2.0.0","moment":"2.2.1","q":"0.9.7"},"main":"index.js","devDependencies":{"chai-timers":"0.2.0","chai":"1.7.2","mocha":"1.13.0","coveralls":"~2.10.0","mocha-lcov-reporter":"0.0.1","istanbul":"~0.2.7"},"description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","version":"1.1.1","name":"zeit","bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"homepage":"https://github.com/daviddenton/zeit","_id":"zeit@1.1.1","dist":{"shasum":"e713ed2133c1740e5ca35a939c47bc38513b3aad","tarball":"https://registry.npmjs.org/zeit/-/zeit-1.1.1.tgz","integrity":"sha512-oKpFxf9nSahzf8LgH869qXrb/QgV6xdo/on70vFro9/L1jAIL9WOZZGOOdBrPEPRlspaSgGVeoYgZjxAOdr1IQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC24eAedySiSqFt4ctvVLBVdHm+BldtfZd6F/RbKT3iCQIgC7BpdKhVkZcpDy0xduzyhb8rctfxtQbuoFKue2glaHM="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"directories":{}},"1.1.2":{"name":"zeit","version":"1.1.2","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","devDependencies":{"istanbul":"~0.2.7","mocha-lcov-reporter":"0.0.1","coveralls":"~2.10.0","mocha":"1.13.0","chai":"1.7.2","chai-timers":"0.2.0"},"main":"index.js","files":["index.js","LICENSE","lib","test","examples"],"scripts":{"test":"node_modules/mocha/bin/mocha","start":"node_modules/mocha/bin/mocha -w"},"repository":{"type":"git","url":"git://github.com/daviddenton/zeit.git"},"author":{"name":"daviddenton"},"keywords":["time","clock","task","promise","timer","scheduler"],"license":"Apache 2.0","dependencies":{"q":"0.9.7","moment":"2.2.1","lodash":"2.0.0"},"bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"homepage":"https://github.com/daviddenton/zeit","_id":"zeit@1.1.2","dist":{"shasum":"c72a5246973d0bd7447aec9f3eebae2be4582f8c","tarball":"https://registry.npmjs.org/zeit/-/zeit-1.1.2.tgz","integrity":"sha512-t7GrasrEvJcfwo+6lXL28s/Mc/XonsqMTfga7loNkEf94KnUU7UNUBfJsqtTiNthjSK6SfgP1EpkL1vFf3ziqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJ0WHqnBo48UCs5fVwfYdyjEwZJq53XGCS18qMCSlhiwIhAKwqXQGSIABHp1Wd+UCo9yIOHXWaeocMGG2NM2gTNPlz"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"directories":{}},"1.1.3":{"dependencies":{"lodash":"2.0.0","moment":"2.2.1","q":"0.9.7"},"license":"Apache 2.0","keywords":["time","clock","task","promise","timer","scheduler"],"author":{"name":"daviddenton"},"name":"zeit","version":"1.1.3","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","devDependencies":{"chai-timers":"0.2.0","chai":"1.7.2","mocha":"1.13.0","coveralls":"~2.10.0","mocha-lcov-reporter":"0.0.1","istanbul":"~0.2.7"},"main":"index.js","files":["index.js","LICENSE","lib","test","examples"],"scripts":{"start":"node_modules/mocha/bin/mocha -w","test":"node_modules/mocha/bin/mocha"},"repository":{"url":"git://github.com/daviddenton/zeit.git","type":"git"},"bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"homepage":"https://github.com/daviddenton/zeit","_id":"zeit@1.1.3","dist":{"shasum":"55acdc49436cd9764d950ecb83cf7c0c1c50c303","tarball":"https://registry.npmjs.org/zeit/-/zeit-1.1.3.tgz","integrity":"sha512-vK9VfUnt2UzRcUVWJagWu3yONSDPAsS5QtdV2QMgECJ6ULEVlj4z93N9NkQe53ZGNrRvb8T6DUCXfpf0AOVkLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIExrjRANurANCu4dfPrA91SowYfQ0LTU5RnAj6dM8TjxAiEAkULOwLhcJA3Cwkg0KirqcI/7Is2npB/LHVWxf9Pq9xQ="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"directories":{}},"1.1.4":{"repository":{"type":"git","url":"git://github.com/daviddenton/zeit.git"},"scripts":{"test":"node_modules/mocha/bin/mocha","start":"node_modules/mocha/bin/mocha -w"},"files":["index.js","LICENSE","lib","test","examples"],"main":"index.js","devDependencies":{"istanbul":"~0.2.16","mocha-lcov-reporter":"0.0.1","coveralls":"~2.11.0","mocha":"1.20.1","chai":"1.9.1","chai-timers":"0.2.0"},"dependencies":{"q":"1.0.1","moment":"2.7.0","lodash":"2.4.1"},"license":"Apache 2.0","keywords":["time","clock","task","promise","timer","scheduler"],"author":{"name":"daviddenton"},"name":"zeit","version":"1.1.4","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"homepage":"https://github.com/daviddenton/zeit","_id":"zeit@1.1.4","_shasum":"31b9a5d71e54bbe60c1553e643110edc20a00215","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"dist":{"shasum":"31b9a5d71e54bbe60c1553e643110edc20a00215","tarball":"https://registry.npmjs.org/zeit/-/zeit-1.1.4.tgz","integrity":"sha512-o2cZS1IsT6I2G8zCP/zkTFPvErnFLL38w+DbuzLO5jMWtz8Py1i5a1QDeDGnK6JLlXUJ51k/BOwuyxJ13tzr4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEMUafTJEbUu62je6tC4dFjVHzz9m1aaqttynbLmAb9vAiEAsNEVFMM3ItJQ13Pv3WvZfWKGKkpE9K9SAFZKrKstCfc="}]},"directories":{}},"1.1.5":{"description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","version":"1.1.5","name":"zeit","author":{"name":"daviddenton"},"keywords":["time","clock","task","promise","timer","scheduler"],"repository":{"url":"git://github.com/daviddenton/zeit.git","type":"git"},"scripts":{"start":"node_modules/mocha/bin/mocha -w","test":"node_modules/mocha/bin/mocha"},"files":["index.js","LICENSE","lib","test","examples"],"main":"index.js","devDependencies":{"chai-timers":"0.2.0","chai":"1.10.0","mocha":"2.0.1","coveralls":"~2.11.2","mocha-lcov-reporter":"0.0.1","istanbul":"~0.3.2"},"dependencies":{"lodash":"2.4.1","moment":"2.8.3","q":"1.1.1"},"license":"Apache 2.0","bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"homepage":"https://github.com/daviddenton/zeit","_id":"zeit@1.1.5","_shasum":"dc1121727bdfeef03628d2f9e970a1b45cdb1fc1","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"dist":{"shasum":"dc1121727bdfeef03628d2f9e970a1b45cdb1fc1","tarball":"https://registry.npmjs.org/zeit/-/zeit-1.1.5.tgz","integrity":"sha512-aVUmq8lamGoEuWvF8h/V/GSV4pZwoFOK9/IsDVYW18CpwdQT/xxpWx5C6SP7XA7oVm66nhGYs1jRuuh+ESgr/w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBf1z77iqPuOUC+ZxnEmW70jpKbSArXoa5FPDb0vINjGAiAPumZwdtr8Cr3ICuzgdFadjdXKqaoOdI2WdpMpNh27BA=="}]},"directories":{}},"1.1.6":{"license":"Apache 2.0","dependencies":{"q":"1.1.1","moment":"2.8.3","lodash":"2.4.1"},"devDependencies":{"istanbul":"~0.3.2","mocha-lcov-reporter":"0.0.1","coveralls":"~2.11.2","mocha":"2.0.1","chai":"1.10.0","chai-timers":"0.2.0"},"main":"index.js","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","version":"1.1.6","name":"zeit","author":{"name":"daviddenton"},"keywords":["time","clock","task","promise","timer","scheduler"],"repository":{"type":"git","url":"git://github.com/daviddenton/zeit.git"},"scripts":{"test":"node_modules/mocha/bin/mocha","start":"node_modules/mocha/bin/mocha -w"},"files":["index.js","LICENSE","lib","test","examples"],"gitHead":"87baca812f4e951c8ce6d530b66e45e6b8d45274","bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"homepage":"https://github.com/daviddenton/zeit","_id":"zeit@1.1.6","_shasum":"251a5e9c6e68f254e9d69dbf150463f1e279f981","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"dist":{"shasum":"251a5e9c6e68f254e9d69dbf150463f1e279f981","tarball":"https://registry.npmjs.org/zeit/-/zeit-1.1.6.tgz","integrity":"sha512-hJH7KglOz3RviLsUegNcjskQCayG9gx4FLE0nEihmRLfo7PFeuJDj7cc/ARYRFQYiDZK7v6lceBUE3KHafOYBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcEQGMlOq8pfEa/f7awc3xblA4PadTL0t5q9loFk5F8QIgaQYA+3mVIxexB6Wr0uxDWLXfdwn3Fk6M4cvhJwg5Stk="}]},"directories":{}},"1.1.7":{"name":"zeit","version":"1.1.7","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","main":"index.js","devDependencies":{"istanbul":"0.3.13","mocha-lcov-reporter":"0.0.2","coveralls":"2.11.2","mocha":"2.2.4","chai":"2.3.0","chai-timers":"0.2.0"},"files":["index.js","LICENSE","lib","test","examples"],"scripts":{"test":"node_modules/mocha/bin/mocha","start":"node_modules/mocha/bin/mocha -w"},"repository":{"type":"git","url":"git://github.com/daviddenton/zeit.git"},"keywords":["time","clock","task","promise","timer","scheduler"],"author":{"name":"daviddenton"},"license":"Apache 2.0","dependencies":{"q":"1.3.0","moment":"2.10.2","lodash":"3.7.0"},"gitHead":"e0e7dc10dd0412ff953a18f44cc506db1c8be209","bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"homepage":"https://github.com/daviddenton/zeit","_id":"zeit@1.1.7","_shasum":"9b315522278678d1dd2d93ce192d91a22b48228b","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"dist":{"shasum":"9b315522278678d1dd2d93ce192d91a22b48228b","tarball":"https://registry.npmjs.org/zeit/-/zeit-1.1.7.tgz","integrity":"sha512-6Z0VWJuUJp9pZuJS21wtqLsDsyFyDv23DXB/crLz8RXsBfkM7uDEZIW2GN6mJKnn1nIs5PcHW+/2MqcfOVmCLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbwHAjVs8egO8vGohdDIOXS5dg1zXwfogskmII7DBlUgIhAJ0qHixAhKFz5TfvA25WGSVC9EGwthxoNsIfZJuA922F"}]},"directories":{}},"1.2.0":{"dependencies":{"lodash":"4.5.0","moment":"2.11.2","q":"1.4.1"},"license":"Apache 2.0","author":{"name":"daviddenton"},"keywords":["time","clock","task","promise","timer","scheduler"],"name":"zeit","version":"1.2.0","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","main":"index.js","devDependencies":{"chai-timers":"0.2.0","chai":"3.5.0","mocha":"2.4.5","coveralls":"2.11.6","mocha-lcov-reporter":"1.1.0","istanbul":"0.4.2"},"files":["index.js","LICENSE","lib","test","examples"],"scripts":{"start":"node_modules/mocha/bin/mocha -w","test":"node_modules/mocha/bin/mocha"},"repository":{"url":"git://github.com/daviddenton/zeit.git","type":"git"},"gitHead":"d44338f61eb256fdc6de4dd3ce02aa9bdbc13ee7","bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"homepage":"https://github.com/daviddenton/zeit#readme","_id":"zeit@1.2.0","_shasum":"1a511dff6e2b1216099b33a17b5edd0f78e5a577","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"dist":{"shasum":"1a511dff6e2b1216099b33a17b5edd0f78e5a577","tarball":"https://registry.npmjs.org/zeit/-/zeit-1.2.0.tgz","integrity":"sha512-OunajwmM0SNE8SsLlQJ8OwN8MYxbzZf4Jr9acgXeC6LJ/FAp9KGW9bFCluJB3tptUzmsWsrx0QqTE4NMejwhMg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHVUId910IVDvSguxrj2S9+OJg8PXTAbDgucVXYacvWJAiAqL4dP4Xlh524GOCED0JnrInQ5r3aFea6r/nspxIm7Gw=="}]},"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/zeit-1.2.0.tgz_1455982099155_0.8740770204458386"},"directories":{}},"1.2.1":{"name":"zeit","version":"1.2.1","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","main":"index.js","devDependencies":{"istanbul":"0.3.13","mocha-lcov-reporter":"0.0.2","coveralls":"2.11.2","mocha":"2.2.4","chai":"2.3.0","chai-timers":"0.2.0"},"files":["index.js","LICENSE","lib","test","examples"],"scripts":{"test":"node_modules/mocha/bin/mocha","start":"node_modules/mocha/bin/mocha -w"},"repository":{"type":"git","url":"git://github.com/daviddenton/zeit.git"},"keywords":["time","clock","task","promise","timer","scheduler"],"author":{"name":"daviddenton"},"license":"Apache 2.0","dependencies":{"q":"1.3.0","moment":"2.10.2","lodash":"3.7.0"},"gitHead":"9bff2937142101f8ed9206ae0a9b1e6022515d92","bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"homepage":"https://github.com/daviddenton/zeit#readme","_id":"zeit@1.2.1","_shasum":"1b2bb702028004865d5639cc2e181b056a2ab244","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"dist":{"shasum":"1b2bb702028004865d5639cc2e181b056a2ab244","tarball":"https://registry.npmjs.org/zeit/-/zeit-1.2.1.tgz","integrity":"sha512-cfWDVWuP/20aySWk6OPpARyau42jk03G7cysFAqOU+EyS7UOlgKpVsA6sOcU39Fr2RT5d6/jGgThvkNe+nxHRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4rgBkq0DmJsEJNveubag/VUCire/JiEywx9syyyZ8+QIhAO2N3ynaabydi6fWzDvX24qIlDQuOXs36pT8vIV1G4Hn"}]},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/zeit-1.2.1.tgz_1455982965068_0.044183779740706086"},"directories":{}},"1.3.0":{"repository":{"type":"git","url":"git://github.com/daviddenton/zeit.git"},"scripts":{"test":"node_modules/mocha/bin/mocha","start":"node_modules/mocha/bin/mocha -w"},"files":["index.js","LICENSE","lib","test","examples"],"devDependencies":{"istanbul":"0.4.2","mocha-lcov-reporter":"1.1.0","coveralls":"2.11.6","mocha":"2.4.5","chai":"3.5.0","chai-timers":"0.2.0"},"main":"index.js","dependencies":{"lodash":"4.5.0","moment":"2.11.2","q":"1.4.1"},"license":"Apache 2.0","author":{"name":"daviddenton"},"keywords":["time","clock","task","promise","timer","scheduler"],"name":"zeit","version":"1.3.0","description":"Injectable clock and promise scheduler, plus stub versions for easy testing, using native JS or Moment.js Date APIs","gitHead":"666a194aecda1c9277eacfaba7f37a39e5ff1711","bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"homepage":"https://github.com/daviddenton/zeit#readme","_id":"zeit@1.3.0","_shasum":"e9dad17b83022f9114be010cb257f60d614067f4","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"daviddenton","email":"denton.david+npm@gmail.com"},"maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"dist":{"shasum":"e9dad17b83022f9114be010cb257f60d614067f4","tarball":"https://registry.npmjs.org/zeit/-/zeit-1.3.0.tgz","integrity":"sha512-tpSk/lrRZu0n/9OAJ225SmE97MTtcl/ihaHj1yKYOZ01qoi5T3yohavbRkke/zuK/bNBWYI3MEmSdh2wPiABNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBNRRVxYDIVuJKh70Bd5bHkg+yQ2Q4hhwGCJjOKYB6VKAiEAkWFLSnYXthvDGJKTZy4NFWMVUT5DdyRPc/mnLY5i+GY="}]},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/zeit-1.3.0.tgz_1455986611741_0.27091755950823426"},"directories":{}}},"readme":"#zeit\n[![NPM version](https://badge.fury.io/js/zeit.svg)](http://badge.fury.io/js/zeit)\n[![Build Status](https://api.travis-ci.org/daviddenton/zeit.png?branch=master)](https://travis-ci.org/daviddenton/zeit)\n[![Coverage Status](https://coveralls.io/repos/daviddenton/zeit/badge.png)](https://coveralls.io/r/daviddenton/zeit)\n[![Dependency Status](https://david-dm.org/daviddenton/zeit.png)](https://david-dm.org/daviddenton/zeit)\n[![devDependency Status](https://david-dm.org/daviddenton/zeit/dev-status.png)](https://david-dm.org/daviddenton/zeit#info=devDependencies)\n\nA node.js clock and scheduler, intended to take place of the global V8 object for manipulation of time and task scheduling which\nwould be handled with calls to ```set/clearTimeout``` and ```set/clearInterval```. Zeit ships with a set of controllable Stub clocks\n which can be used for the manipulation of time and scheduling in tests.\n\n###Why does this project exist?\nWriting testable code which involves the concept of time can be hard work, since you need to interact with the global \"system\" object in order to:\n1. Create Date object instances.\n2. Schedule callbacks to be executed at some point in the future.\n\nIn order to ensure that this behaviour is acceptably deterministic (and hence testable),\nwe need to be able to control both of these events. The Zeit library provides objects to abstract\n away the global-ness of these operations, which can be used in [node.js](http://nodejs.org/) application code to\n provide a more managed method.\n\nFor test code you can use the bundled Stub implementations to effectively control the time in\nyour tests, which removes the need for non-deterministic methods for asserting order and expected bevahiour, many of which rely on timeouts.\n\nZeit currently supports both the native [JavaScript Date](http://www.w3schools.com/js/js_obj_date.asp) API and the (IMHO) superior\n[Moment.js](http://momentjs.com/) API.\n\n###tl;dr Examples:\n\n\n1. Schedule a single execution of a callback for 10 seconds in the future.\n```javascript\nnew zeit.Scheduler(new zeit.DateClock())\n    .execute(function () {\n        return 'some happy value';\n    })\n    .after(10000)\n    .start();\n```\n\n2. Schedule a single execution of a callback at 10 seconds in the future.\n```javascript\nnew zeit.Scheduler(new zeit.DateClock())\n    .execute(function () {\n        return 'some happy value';\n    })\n    .at(new zeit.DateClock().timeIn(10000))\n    .start();\n```\n\n3. Schedule a Q promise to execute 5 times at 30 second intervals, starting immediately.\n```javascript\nnew zeit.Scheduler(new zeit.MomentClock())\n    .execute(function () {\n        return q.resolve('some happy path resolving promise');\n    })\n    .exactly(5)\n    .atFixedIntervalOf(moment.duration(30000))\n    .start();\n```\n\n4. Schedule repeatedly to trigger a callback at 1 minute breaks (wait for completion) while\nexecuted less than 1000 times and no error is thrown by the callback. Starts immediately.\n```javascript\nnew zeit.Scheduler(new zeit.DateClock())\n    .execute(function () {\n        return 'some happy value';\n    })\n    .andRepeatAfter(60000)\n    .whilst(function(scheduleItemDetails) {\n        return scheduleItemDetails.invocationCount < 1000;\n    })\n    .until(function(err, result) {\n        return err;\n    })\n    .start();\n```\n\n###Installation\nVia npm, simply run: ```npm install zeit```\n\n###API details\nZeit requires that the same supported Date API is used consistently throughout calling code - use\nthe wrong type and you'll get an explicit error:\n- Native Date implementation - Dates are represented as native Date objects, and durations are passed/returned as an integer number of milliseconds.\n- Moment.js implementation - Dates are represented as Moment objects and durations are passed/returned as Duration objects.\n\n####Real clocks - zeit.DateClock / zeit.MomentClock\nAbstracts the creation of date objects (using ```now```),\nand wraps the native ```set/clearTimeout``` & ```set/clearInterval``` methods. Also provides some\nutility methods below, which are required by the Scheduler implementation:\n\n#####now() -> current date\nIn the format relative to the implementation (see above).\n\n#####timeIn(durationInMilliseconds) -> augmented date\nReturns the current date incremented by the passed duration.\n\n#####numberOfMillisecondsAsDuration(numberOfMilliseconds) -> duration\nIn the format relative to the implementation (see above).\n\n#####durationUntil(datetime) -> duration\nIn the format relative to the implementation (see above).\n\nIf you want to provide your own implementation of clock (using another Date library),\nyou'll just need to implement these methods and then mixin an instance of TimeoutsAndIntervals.\n\n####Stub clocks - zeit.StubDateClock / zeit.StubMomentClock\nExtends the Real Clock API and provides a means to control the current time by setting it\ndirectly, or implicitly/explicitly ticking by a set duration. API as above, with the following methods:\n\n##### Constructor(currentDate, tickSize, implicitTickFlag)\nIf no values passed, the following defaults are used:\n- currentDate: Start of universal time (01-01-1970)\n- tickSize: 1 second\n- implicitTickFlag: false\n\n#####now(newCurrentDate) -> current date\nSets the current date if passed, and then returns the current date in the relative format. If\nimplicit ticking is activated, the time will be incremented automatically by the set ticksize.\n\n#####intervals() -> { native id -> timeout duration }\nReturn a Hash of currently scheduled timeout durations by their timeout id.\n\n#####timeouts() -> { native id -> timeout duration }\nReturn a Hash of currently scheduled interval durations by their timeout id.\n\n#####triggerAll() -> [ids of all triggered callbacks]\nTriggers all of the currently stored timeouts and intervals. After completion, reschedules intervals at the specified duration and discards timeouts.\n\n#####lastKnownTime() -> current date\nSame as ```now()```, but with no ticking.\n\n#####tickSize(tickSizeInMilliseconds) -> current tick size duration\nIf passed, sets the current ticksize.\n\n#####tick(newTickSizeInMilliseconds) -> new current (ticked) date\nIncrements the current date by the duration in milliseconds, or the current ticksize if not passed. Then returns the new current date.\n\n#####implicitTick(newImplicitTickFlag) -> current implicit tick flag\nIf passed, sets the current implicit tick flag.\n\n\n####Scheduler - zeit.Scheduler\nWraps the native scheduling of repeating and non-repeating callbacks or [Promises/A compliant](http://wiki.commonjs.org/wiki/Promises/A) promises, but also provides the API to provide pre and post\npredicates to prevent execution or rescheduling or to control the number of executions.\nConfiguration of the schedules follows the Builder pattern. The scheduler doesn't make a\ndistinction between repeating and one-off events, rather the usage of the API determines this\nbehaviour.\n\nSchedulers are [Event Emitters](http://nodejs.org/api/events.html) which emit the following\nlifecycle events for each schedule, with the latest schedule details as the message:\n- start\n- finish\n- error\nNote that callbacks/promises which throw exceptions (or rejected promises) emit Start & Error (no\nFinish event), and that throwing an exception does not cancel repeat scheduling (to stop\nrescheduling on an error, use the until() predicate when configuring the schedule).\n\n#####execute(callback/promise factory function) -> Schedule Item Builder\nInitiates the Builder pattern for configuring the schedule item. The passed function can be\neither a standard callback or return a Promises/A compliant promise object. Some of the examples\nbelow and the internal Zeit implementation use the [Q](http://npmjs.org/package/q) library.\n\n#####activeSchedule(scheduleId) -> schedule details\nReturns details of the schedule, including the configuration and stats such as the invocation count and last run time.\n\n#####cancel(scheduleId) -> schedule details\nCancels the schedule and returns the latest details for that schedule, if any.\n\n#####cancelAll() -> (scheduleId -> schedule details)\nCancels all schedules and returns a Hash of the schedules cancelled.\n\n####Schedule Item Builder (returned by execute() in Scheduler)\nProvides the methods to configure the schedule. Calling ```start()``` actually schedules the execution.\nFollows the Builder pattern, so most methods return ```this```.\n\n#####named(schedule name) -> schedule item builder\nSets the name of the schedule.\n\n#####after(durationInMilliseconds) -> schedule item builder\nSets the initial delay before the first execution (like ```setTimeout```).\n\n#####at(datetime) -> schedule item builder\nSets the time of the first execution (like ```setTimeout```).\n\n#####atFixedIntervalOf(durationInMilliseconds) -> schedule item builder\nSets the repeat at a fixed rate, regardless of how long the execution takes.\n\n#####andRepeatAfter(durationInMilliseconds) -> schedule item builder\nSets the repeat at a fixed interval after execution has completed (like a tail call to ```setTimeout```).\n\n#####exactly(numberOfExecutions) -> schedule item builder\nSets the maximum number of executions, which may be adjusted by pre and post predicates.\n\n#####once() -> schedule item builder\nSyntactic-sugar for ```exactly(1)```.\n\n#####whilst(-> boolean) -> schedule item builder\nSets a pre-execution predicate, which will cancel all rescheduling once it returns false.\n\n#####until((err, result) -> boolean) -> schedule item builder\nSets a post-execution predicate, which will cancel all rescheduling once it returns true. The\nlast execution error and result are passed to this predicate, so asserting on these values is possible.\n\n","maintainers":[{"name":"daviddenton","email":"denton.david+npm@gmail.com"}],"time":{"modified":"2022-06-29T16:41:37.243Z","created":"2013-09-21T17:34:33.972Z","0.0.1":"2013-09-21T17:34:37.207Z","0.0.2":"2013-09-21T17:38:52.721Z","0.0.3":"2013-09-21T17:40:10.229Z","0.0.4":"2013-09-21T18:10:17.574Z","0.0.5":"2013-09-21T18:13:14.227Z","0.0.6":"2013-09-21T18:16:09.836Z","0.0.7":"2013-09-21T18:19:47.944Z","0.0.8":"2013-09-30T16:45:54.055Z","0.0.9":"2013-09-30T18:10:14.357Z","1.0.0":"2013-09-30T20:21:11.338Z","1.0.1":"2013-09-30T20:58:24.215Z","1.0.2":"2013-09-30T21:20:39.138Z","1.0.3":"2013-09-30T21:40:06.314Z","1.0.4":"2013-10-01T06:32:25.584Z","1.0.5":"2013-11-18T20:48:00.899Z","1.0.6":"2013-11-18T21:17:55.479Z","1.1.0":"2014-04-09T20:39:16.019Z","1.1.1":"2014-04-09T20:43:05.325Z","1.1.2":"2014-04-09T21:22:03.785Z","1.1.3":"2014-04-09T21:23:52.402Z","1.1.4":"2014-07-04T18:55:01.702Z","1.1.5":"2014-11-17T22:13:03.205Z","1.1.6":"2015-02-07T18:05:49.454Z","1.1.7":"2015-04-30T14:09:35.125Z","1.2.0":"2016-02-20T15:28:21.991Z","1.2.1":"2016-02-20T15:42:49.907Z","1.3.0":"2016-02-20T16:43:36.115Z"},"author":{"name":"daviddenton"},"repository":{"type":"git","url":"git://github.com/daviddenton/zeit.git"},"keywords":["time","clock","task","promise","timer","scheduler"],"bugs":{"url":"https://github.com/daviddenton/zeit/issues"},"license":"Apache 2.0","readmeFilename":"README.md","homepage":"https://github.com/daviddenton/zeit#readme","users":{"thinhair":true,"yuler":true}}