{"_id":"@allan8362/streak-counter","_rev":"2-662e4e7ab3b5b8ae6b37642dd3affcf8","name":"@allan8362/streak-counter","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@allan8362/streak-counter","version":"0.0.1","repository":{"type":"git","url":"git+https://github.com/allan8362/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","unpkg":"./dist/index.umd.js","scripts":{"build":"microbundle","dev":"microbundle watch","test":"NODE_OPTIONS=--experimental-vm-modules jest"},"devDependencies":{"@types/jest":"^29.5.5","@types/jsdom":"^21.1.3","jest":"^29.7.0","jsdom":"^22.1.0","microbundle":"^0.15.1","ts-jest":"^29.1.1","typescript":"^5.2.2"},"_id":"@allan8362/streak-counter@0.0.1","gitHead":"00627a5a41d38839cf7e9ef97acc19aaaa731ee1","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/allan8362/streak-counter/issues"},"homepage":"https://github.com/allan8362/streak-counter#readme","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-9VdgjkN9E1bfQofoV1tcUXBR4xVSGU7KPH5cBbfc2hINkBdTq+t+NW+EpYvkeW3bVBloK46+f7YnrrUN5nIKAA==","shasum":"16b4de14b1a25d9902c688aed206bb1bafafd6a6","tarball":"https://registry.npmjs.org/@allan8362/streak-counter/-/streak-counter-0.0.1.tgz","fileCount":17,"unpackedSize":143576,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC89cGjw/Hc+CxYLMNrz9ot5O/0pxBQV23goqghgm9O2AIhAJCMGeUvX4BeQ17ZSJIppoAmmp0GRbNiSS2uOjrJXeIo"}]},"_npmUser":{"name":"allan8362","email":"ab2other@gmail.com"},"directories":{},"maintainers":[{"name":"allan8362","email":"ab2other@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/streak-counter_0.0.1_1697659114287_0.05616645136303666"},"_hasShrinkwrap":false},"0.0.2":{"name":"@allan8362/streak-counter","version":"0.0.2","repository":{"type":"git","url":"git+https://github.com/allan8362/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","unpkg":"./dist/index.umd.js","scripts":{"build":"microbundle","dev":"microbundle watch","test":"NODE_OPTIONS=--experimental-vm-modules jest"},"devDependencies":{"@types/jest":"^29.5.5","@types/jsdom":"^21.1.3","jest":"^29.7.0","jsdom":"^22.1.0","microbundle":"^0.15.1","ts-jest":"^29.1.1","typescript":"^5.2.2"},"_id":"@allan8362/streak-counter@0.0.2","gitHead":"ceba88d16239db15f610ea8ed42fb2326477a777","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/allan8362/streak-counter/issues"},"homepage":"https://github.com/allan8362/streak-counter#readme","_nodeVersion":"20.8.1","_npmVersion":"10.1.0","dist":{"integrity":"sha512-x4/OiDuVP4kEdsAKyAS1LUUVpYzSFpgri/hZNAYM6I8tUJysAT5LWHhtIlC7hdZ+i+PpG6dzLDKMju08lvZnBw==","shasum":"fda094413667d5b768d6c24c74b0f05afa8e3dbb","tarball":"https://registry.npmjs.org/@allan8362/streak-counter/-/streak-counter-0.0.2.tgz","fileCount":16,"unpackedSize":24465,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXm8Gn635WJq4z6HBXEcRwYKF59kkG4kyr9bLAPoO9lgIhAL06C+6aDhoYaTLHxv9tKo6JGe1aDcJh8s99apvsEbbP"}]},"_npmUser":{"name":"allan8362","email":"ab2other@gmail.com"},"directories":{},"maintainers":[{"name":"allan8362","email":"ab2other@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/streak-counter_0.0.2_1697665184725_0.39688320491176277"},"_hasShrinkwrap":false},"0.0.3":{"name":"@allan8362/streak-counter","version":"0.0.3","repository":{"type":"git","url":"git+https://github.com/allan8362/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","unpkg":"./dist/index.umd.js","scripts":{"build":"microbundle","dev":"microbundle watch","test":"NODE_OPTIONS=--experimental-vm-modules jest"},"devDependencies":{"@types/jest":"^29.5.5","@types/jsdom":"^21.1.3","jest":"^29.7.0","jsdom":"^22.1.0","microbundle":"^0.15.1","ts-jest":"^29.1.1","typescript":"^5.2.2"},"_id":"@allan8362/streak-counter@0.0.3","gitHead":"25781c08a47ad2dc9e41a3686fc9c0914af1cb4d","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/allan8362/streak-counter/issues"},"homepage":"https://github.com/allan8362/streak-counter#readme","_nodeVersion":"20.8.1","_npmVersion":"10.1.0","dist":{"integrity":"sha512-P4feCi5Xwu9AGMthh0FQ86Xtb71kRsYI4K6BUijtTAgA1Y0pPqfs5MfmM5/5eJnrlGbkjDvOiD834KucjyHmyA==","shasum":"efd5e347635819161e48104ce8bdd3da0d562147","tarball":"https://registry.npmjs.org/@allan8362/streak-counter/-/streak-counter-0.0.3.tgz","fileCount":16,"unpackedSize":39808,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXEKkBfDb07PskblBJf8lzrDEEvNbeuB4/K+UQKdXipgIgD+NR1F0DAcjPcGHzoPOe6UZKxCrfWzQv60aFzb3iPu8="}]},"_npmUser":{"name":"allan8362","email":"ab2other@gmail.com"},"directories":{},"maintainers":[{"name":"allan8362","email":"ab2other@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/streak-counter_0.0.3_1697753081493_0.0647815720175069"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-18T19:58:34.103Z","0.0.1":"2023-10-18T19:58:34.480Z","modified":"2023-10-19T22:04:41.978Z","0.0.2":"2023-10-18T21:39:45.054Z","0.0.3":"2023-10-19T22:04:41.808Z"},"maintainers":[{"name":"allan8362","email":"ab2other@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/allan8362/streak-counter#readme","repository":{"type":"git","url":"git+https://github.com/allan8362/streak-counter.git"},"bugs":{"url":"https://github.com/allan8362/streak-counter/issues"},"license":"MIT","readme":"# streak-counter\n\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 @allan8362/streak-counter\n```\n* or\n```shell\nnpm install @allan8362/streak-counter\n```\n\n## Usage\n\n[![Edit streak-counter (ts-course) (forked)](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/streak-counter-ts-course-forked-47my8w?fontsize=14&hidenavigation=1&theme=dark)\n\n```\nimport {streakCounter} from '@allan8362/streak-counter'\n\nconst today = new Date()\nconst streak = streakCounter(localStorage, today)\n// streak returns an object:\n// {\n//    currentCount: 1,\n//    lastLoginDate: \"11/11/2021\",\n//    startDate: \"11/11/2021\",\n// }\n```\n","readmeFilename":"README.md"}