{"_id":"@cablanchard/stopwatch","_rev":"4-42e6f78ede4d436a0b2a8425d7fc1954","name":"@cablanchard/stopwatch","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@cablanchard/stopwatch","version":"0.0.1","description":"stopwatch","repository":{"type":"git","url":"git+ssh://git@github.com/cblanc/stopwatch.git"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"npm run lint && NODE_ENV=test node_modules/.bin/nyc node_modules/.bin/mocha --opts mocha.opts","lint":"tslint -c tslint.json -p tsconfig.json lib/**/*.ts","build":"npm run lint && node_modules/.bin/tsc","prepublish":"npm run build"},"nyc":{"include":["lib/**/*.ts"],"exclude":["dist/*"],"extension":[".ts"],"require":["ts-node/register"],"reporter":["text-summary","html"],"sourceMap":true,"instrument":true,"all":true},"engines":{"node":">=8.0"},"author":{"name":"cblanc"},"license":"MIT","devDependencies":{"@types/chai":"^4.1.3","@types/mocha":"^5.2.0","@types/node":"^10.1.4","chai":"^4.1.2","mocha":"^5.2.0","nyc":"^11.8.0","source-map-support":"^0.5.6","ts-node":"^6.0.3","tslint":"^5.10.0","typings":"^2.1.1"},"dependencies":{"typescript":"^2.8.3"},"gitHead":"de5357a4b67623ca08f7259d8f79c15500280d36","bugs":{"url":"https://github.com/cblanc/stopwatch/issues"},"homepage":"https://github.com/cblanc/stopwatch#readme","_id":"@cablanchard/stopwatch@0.0.1","_shasum":"c14a00a803fc15b1b0e1aeaf05003332b394eee9","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"cablanchard","email":"cablanchard@gmail.com"},"dist":{"shasum":"c14a00a803fc15b1b0e1aeaf05003332b394eee9","tarball":"https://registry.npmjs.org/@cablanchard/stopwatch/-/stopwatch-0.0.1.tgz","fileCount":8,"unpackedSize":5370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbEIKdCRA9TVsSAnZWagAAUY0P/2ppxbmokSTGthH2Vx4M\n2rghYCpm35faPwT5eAaXr+U0BC7R3lDrGFoJStWsGj0Sr2fUHXrkUDsmvFNs\nXyOrBt5EkYztPZ8A4X/dvuFZb3VNUWkiAVgXjB0IYkCQ+Rh/IDts4rDUvtwD\nFMZkxxBnEXY2gK2WRO34zRzA9SGaz4gPuwebj4ueCq/yAoaq/00xhjd68Bqk\nDKRbee3rAyKxbdG9XFMBcp6dzKXS+mZ6gHvjSj6sgMHbfZ5XDBgS/xzE12G7\nrmX2QxNtljqi9Mwl3ahxNIB8cr1RAFKof93bkIrpL0f/LWw29nqiVA7mFsUh\nVgh2N0fvjqmucxAAknwW2Q6jX64yA5LM5f+TyWE1xaX7Czt6JcUhqf7KslRO\nppVWl66HUNAX9Em2Wy/UgothUGjO4YpfIabqe315XZ7DKopXxu1u+yu1/pl/\n7pOlkkQOjRdKoLphbzgi1Iy2t4BovBGz9eUj6S+hr+Amy0Y2/iwUwyaVCW6r\no+MW5AUhK6C5cAPhW2VoiQVfNxSZKfs4+ZHVF21LJbImp8t7gLMISOLZLNrj\n1rwMORKvoKbt1q/uCjo8z8SEzWvb8WFh9DTKwZdJjF/va2Avvsob4bdUKnsR\ne+bgB+fCeJDR9z59ty6Emd8Dg1duFp8yUJSoHjSAwUH1QVJnIPV5TFWB3pTv\nNnxL\r\n=ht0a\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-l/P+QjWa4PfZOi5s9MuX6Kc24fUqONDnTOeKHbIFvh2wGd7++cYDgF5PB+J6caFi0e3fku9+W7QywUq5lUEEnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFKBWUZ7fF7158kO8wYy3QBeZniQKXRQoJQSj/+279oxAiA5R94iq2PWW0+8IHKxfloynJlencQWKrodAcLdOxi7Cw=="}]},"maintainers":[{"name":"cablanchard","email":"cablanchard@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stopwatch_0.0.1_1527808668631_0.35702678812726263"},"_hasShrinkwrap":false},"0.0.2":{"name":"@cablanchard/stopwatch","version":"0.0.2","description":"stopwatch","repository":{"type":"git","url":"git+ssh://git@github.com/cblanc/stopwatch.git"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"npm run lint && NODE_ENV=test node_modules/.bin/nyc node_modules/.bin/mocha --opts mocha.opts","lint":"tslint -c tslint.json -p tsconfig.json lib/**/*.ts","build":"npm run lint && node_modules/.bin/tsc","prepublish":"npm run build"},"nyc":{"include":["lib/**/*.ts"],"exclude":["dist/*"],"extension":[".ts"],"require":["ts-node/register"],"reporter":["text-summary","html"],"sourceMap":true,"instrument":true,"all":true},"engines":{"node":">=8.0"},"author":{"name":"cblanc"},"license":"MIT","devDependencies":{"@types/chai":"^4.1.4","@types/mocha":"^5.2.4","@types/node":"^10.5.1","chai":"^4.1.2","mocha":"^5.2.0","nyc":"^12.0.2","source-map-support":"^0.5.6","ts-node":"^7.0.0","tslint":"^5.10.0","typings":"^2.1.1","typescript":"^2.9.2"},"dependencies":{},"gitHead":"8035587c855741927a3cb615b40065e92986ef9d","bugs":{"url":"https://github.com/cblanc/stopwatch/issues"},"homepage":"https://github.com/cblanc/stopwatch#readme","_id":"@cablanchard/stopwatch@0.0.2","_npmVersion":"6.1.0","_nodeVersion":"8.11.3","_npmUser":{"name":"cablanchard","email":"cablanchard@gmail.com"},"dist":{"integrity":"sha512-NYEsvZ7sFujgbPon0JX7rAXDS9IMiR0gg7LqGxpVPeml0wqXLfmxg7nZgI3ftjncBqdzRsP/ZY4cuLDKT1dKww==","shasum":"2662b94c985268ac6318d8f5997876cf02edc9ac","tarball":"https://registry.npmjs.org/@cablanchard/stopwatch/-/stopwatch-0.0.2.tgz","fileCount":7,"unpackedSize":5475,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbOf6VCRA9TVsSAnZWagAAxeMP+gIwdkjPfZoQiojbFHAo\nUl8735V3UaFg0hdoL3NqKDGNWtujdBPx6fqaeiJ8VzSD395eoHAv8f2d3lyJ\nK6JUsLjCrah9OVhU2VKC0tWkb66VW87f6E15MWnn6QX1WWF5iHfRj0oZlwi3\nzzp5qVcBGFFV8tP4FE7vhhrNYmPt0E0QmzKRv9wz8RFiuRTEQEbyieesle19\n9rKfKhoFTbzhFEQmlydZVo8yoqgoOKzuFPziRu6qXbLhn2p/pZZ+LkhOp9H+\nEJg6hpA6mXxSlbpHz+SRdOzAir9TPG/znD9etJx3GmQ3ipMVD46UZwr+xnOR\ncKeDK1QpmphiM1zHNiQAGNCHN/UGYFRJyfeG6S+Sghw5PUD3cl3Jp9J0XsMN\n+SGoyHmoANbXjLVjQuH5ZGJImBpPyBEc98JKTfp/NWqi7EcjBpTQ6H8c8kGI\nyreGJnVz6rZg1tpmqn9G+rkNBIFaeeWjobaYOJ0VCQpw3EeIvjK+9wDuF3Qs\n07LQeT9f6U7AimIpWnw18lnXkLbcSmrIlPfQSY1W2EhvbQEtbYMNkmOgdegu\nv+v0pIRIk1fhvTkE0xipZyKjdfmC0Bq9+M2QsEZm2Hg88NhMoTyhvRVleQiI\n3ZhKisJ6cxn5EeJlJ1beiUXRoHYk+DJa1NEwMLXASgqgBLPMjCf0qUJb4apP\nX3tu\r\n=TJS1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCois7Gh1YeHgKnyWvjSkXzd+ENN9HkgMVCDxtNtOuNzAIhANRdcT4RuNb+p/NBzcHPFALZYo9Tix94Gt4sjUIKXgvc"}]},"maintainers":[{"name":"cablanchard","email":"cablanchard@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stopwatch_0.0.2_1530527380927_0.20114955364101728"},"_hasShrinkwrap":false}},"time":{"created":"2018-05-31T23:17:48.123Z","0.0.1":"2018-05-31T23:17:48.721Z","modified":"2022-06-12T15:36:49.732Z","0.0.2":"2018-07-02T10:29:41.000Z"},"maintainers":[{"name":"cablanchard","email":"cablanchard@gmail.com"}],"description":"stopwatch","homepage":"https://github.com/cblanc/stopwatch#readme","repository":{"type":"git","url":"git+ssh://git@github.com/cblanc/stopwatch.git"},"author":{"name":"cblanc"},"bugs":{"url":"https://github.com/cblanc/stopwatch/issues"},"license":"MIT","readme":"# Stopwatch\r\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/cblanc/stopwatch.svg)](https://greenkeeper.io/)\n\n\r\nA timing API that fits in my head\r\n\r\n```\r\nnpm install @cablanchard/stopwatch\r\n```\r\n\r\n## Use\r\n\r\n```\r\nconst { Stopwatch } = require(\"@cablanchard/stopwatch\");\r\n\r\nconst stopwatch = Stopwatch.start(); // Start the stopwatch\r\n\r\nconst result = await doSomething();\r\n\r\n// Get the amount of time transpired\r\nstopwatch.split() // => 103.2312 ms\r\nstopwatch.split(\"s\") // => 0.1812 s (seconds)\r\nstopwatch.split(\"ms\") // => 308.2322 ms (milliseconds)\r\nstopwatch.split(\"ns\") // => 490000000 ns (nanoseconds)\r\n```\r\n\r\n## License\r\n\r\nMIT\r\n","readmeFilename":"README.md"}