{"_id":"@aaronmbos/streak-counter","_rev":"2-f5363ab5c3794ea5c0fda62259838b00","name":"@aaronmbos/streak-counter","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@aaronmbos/streak-counter","version":"0.0.1","repository":{"type":"git","url":"git+https://github.com/aaronmbos/streak-counter.git"},"license":"MIT","type":"module","types":"./dist/index.d.ts","source":"src/index.ts","exports":{"require":"./dist/index.cjs","default":"./dist/index.modern.js"},"main":"./dist/index.cjs","module":"./dist/index.module.js","upkg":"./dist/index.umd.js","scripts":{"build":"microbundle","dev":"microbundle watch","test":"NODE_OPTIONS=--experimental-vm-modules jest"},"devDependencies":{"@types/jest":"^27.4.1","@types/jsdom":"^16.2.14","jest":"^27.5.1","jsdom":"^19.0.0","microbundle":"^0.14.2","ts-jest":"^27.1.3","typescript":"^4.6.2"},"gitHead":"52dbd4f84546b4e9e58fc82a81e0cccb1e5123c7","description":"This is a basic streak counter - inspired by Duolingo - written in TypeScript and meant for the browser (uses `localStorage`).","bugs":{"url":"https://github.com/aaronmbos/streak-counter/issues"},"homepage":"https://github.com/aaronmbos/streak-counter#readme","_id":"@aaronmbos/streak-counter@0.0.1","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-8/I1OkbOdwUaM2VuovhowUuAl3qTmruaj5aBixtTQY1B6AEdMZqfPu5WDS7MojUAdObv3SS0UfLq24cvcqyrEQ==","shasum":"c22eba757f4e8fb9a42c08fa27c388fbdade817d","tarball":"https://registry.npmjs.org/@aaronmbos/streak-counter/-/streak-counter-0.0.1.tgz","fileCount":15,"unpackedSize":24805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMUiuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVOQ//X1aoGZDHe+4INGSKNpv4gsYUHz84zSHL3cJwFC9CBILOGRIZ\r\nDU67yVSn6CqgQqRVc83uKatkATEhldOd7JS7GAtedo9Noq6/5zNT0zIW6R1U\r\n25X2bUIdmCMSYC1Sa9CW7uCuRws+KRCYKztYZh7Yc1WTfZkROTR7MPBBMnQJ\r\ndNhesZmoS2+ULF0fMaEvxDB+hdn9/h8KrqBaYFtoYZ+x4W14lE87STyvuZ+k\r\n4YfmfE2c1fH20yOYl2GpMaLXUvgKJuI8KJmGqXXs/RtL+KpI3joU6ke0asKg\r\nReoOS2VAtI9+of78b9PM+spx38HWia1FfUhCCtVuQB9hFE4x1qcZAISkFwxZ\r\nqDAxaqLJitv1+vpgEgiV5TTRqS07RImAwhqYHr9a714DFIWD+sdrifBu1Trw\r\n/i7o9akww2RWgMxOe6RF+Ili+6IU3SA6iVFrTC4QzihMEWpFXApmIeUpZPQB\r\nbKb+Pr+Zb/UHKSTQEedCWX6wDT/8Pbvxaa9CR6tE2TzAkPpe0bR2rHVWJ6sh\r\nuoFYaY/ZeFXjwmhh6vFxzYKLHy65Xr9urAzzdVrY1tZ8iSJfQ2WPGiIi1c2X\r\nNy5eeja7qgImrRWGj+8hxJtRJm0CipD/LJFIQPcKAZgroUeyfOkN7f72WYPC\r\nCt9BXgbSKoooOk0cgflSt2kFqSwE71FBVtc=\r\n=0tmG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwN9iV3PYSwo1L6tLqxaiwZm9+O3FRAUOn4Ux9Gt7YrwIgZ9QTFCeahgTx2ggW1LArX0K4EzuP+lTrQ+HIG9FnE7Q="}]},"_npmUser":{"name":"aaronmbos","email":"aaronmbos@gmail.com"},"directories":{},"maintainers":[{"name":"aaronmbos","email":"aaronmbos@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/streak-counter_0.0.1_1647397038013_0.6395805316027592"},"_hasShrinkwrap":false},"0.0.2":{"name":"@aaronmbos/streak-counter","version":"0.0.2","repository":{"type":"git","url":"git+https://github.com/aaronmbos/streak-counter.git"},"license":"MIT","type":"module","types":"./dist/index.d.ts","source":"src/index.ts","exports":{"require":"./dist/index.cjs","default":"./dist/index.modern.js"},"main":"./dist/index.cjs","module":"./dist/index.module.js","upkg":"./dist/index.umd.js","scripts":{"build":"microbundle","dev":"microbundle watch","test":"NODE_OPTIONS=--experimental-vm-modules jest"},"devDependencies":{"@types/jest":"^27.4.1","@types/jsdom":"^16.2.14","jest":"^27.5.1","jsdom":"^19.0.0","microbundle":"^0.14.2","ts-jest":"^27.1.3","typescript":"^4.6.2"},"gitHead":"1708fc341b4a5b1fae8d7ff5441c1ff57dc8e5b9","description":"This is a basic streak counter - inspired by Duolingo - written in TypeScript and meant for the browser (uses `localStorage`).","bugs":{"url":"https://github.com/aaronmbos/streak-counter/issues"},"homepage":"https://github.com/aaronmbos/streak-counter#readme","_id":"@aaronmbos/streak-counter@0.0.2","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-fO7I1LdjbVt0ZPjDeaJ80Nex5bJacs79Mucj+Hta83s6rY/utm4u+xBgBgMyZjcx3tX+hXkppqiXDA5qPeKSHg==","shasum":"95e3d4f65bd63f559eb3ca617e76df8e00e2ec68","tarball":"https://registry.npmjs.org/@aaronmbos/streak-counter/-/streak-counter-0.0.2.tgz","fileCount":15,"unpackedSize":24993,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMVO4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+eg//VYNIxSgWcQ9wECZWZ2j4M1dU0IyTxTfour00R1fIe4fcX1u+\r\nPrK+fP71E+PTGdbPP+zzik+ZmCJTam4iAe0b3Hzfh8+ct3UPemdMrjl846W9\r\nw8XM7sjlKUlUlsD3g0stz1WKtxVU0deUmwiClf+7NeZUbYTO0qt8N06b5K/3\r\nXibciD/2DR7WzASR5q3Z1PsU5nOKEwBDYhaIwN+21eRvTerPL2+NPQ/S58IJ\r\n8GuCpw42iyVF7HTp9pZm9zV7DUTzp/Z2CuiO434qxcfeEtAwwA78ho6tYmbB\r\n3To43qYYcF97PPHClRNkRITIeR7sorY2X5/o2/IRXkmyVxKZRLolQGB6iHJL\r\n5SDRmAKv3c4x9/EJw3DfrjEy0f2lMAUJO42MUtrM9pjUWtXOZn82gPv87Zxy\r\ndxLe/BdTF3eUrajQrsqmrGc54DBGFKLD1gKUSJgEoJ4suVM2h4TBmTfjsXmt\r\n1GMq8GkzkvDk9xFChsoSeq8uGib58GTEdHR4PHNdGjXKxRQPjzcxyIZhb6RG\r\n+wcwVpLwbv42/nTdy26pUoMr4MMbl82+UXL2vd+IULnkOKBO3Y4hyN5cHSRh\r\n9vO0fWhfs4wx2lWk0FkYQU02xMZ56oe5ZfNI6b3OsL0KSPKt3qoTR6pi8nG+\r\nWmfbi7+UwGciFwQYIfmR1si7EDakoWOk2Ts=\r\n=PvhE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBRYeCEJgTU6uo3/i7BigEnA/Y02ekAmu2QF6K0zLRH9AiBJ4wfLm4IwCls/Z6zHRlxqd7eBTLun5tBXLSkIIoMCMw=="}]},"_npmUser":{"name":"aaronmbos","email":"aaronmbos@gmail.com"},"directories":{},"maintainers":[{"name":"aaronmbos","email":"aaronmbos@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/streak-counter_0.0.2_1647399864403_0.6092582608299988"},"_hasShrinkwrap":false}},"time":{"created":"2022-03-16T02:17:17.951Z","0.0.1":"2022-03-16T02:17:18.146Z","modified":"2022-04-04T10:55:44.149Z","0.0.2":"2022-03-16T03:04:24.655Z"},"maintainers":[{"name":"aaronmbos","email":"aaronmbos@gmail.com"}],"description":"This is a basic streak counter - inspired by Duolingo - written in TypeScript and meant for the browser (uses `localStorage`).","homepage":"https://github.com/aaronmbos/streak-counter#readme","repository":{"type":"git","url":"git+https://github.com/aaronmbos/streak-counter.git"},"bugs":{"url":"https://github.com/aaronmbos/streak-counter/issues"},"license":"MIT","readme":"# `@aaronmbos/streak-counter` - a basic streak counter\nThis is a basic streak counter - inspired by Duolingo - written in TypeScript and meant for the browser (uses `localStorage`).\n\n## Install\n\n```shell\nyarn add @aaronmbos/streak-counter\n```\n\n```shell\nnpm install @aaronmbos/streak-counter\n```\n\n### Usage\n\n[![Try it on CodeSandox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/streak-counter-ts-course-forked-ls8dhc?fontsize=14&hidenavigation=1&theme=dark)\n\n```typescript\nimport { streakCounter } from \"@aaronmbos/streak-counter\";\n\nconst today = new Date();\nconst streak = streakCounter(localStoreage, today);\n// streak returns an object:\n// {\n//   currentCount: 1,\n//   lastLoginDate: \"11/11/2021\",\n//   startDate: \"11/11/2021\"\n// }\n```\n\n","readmeFilename":"README.md"}