{"_id":"@cjsoto/streak-counter","name":"@cjsoto/streak-counter","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@cjsoto/streak-counter","version":"0.0.1","repository":{"type":"git","url":"git+https://github.com/csoto09/streak-counter.git"},"author":{"name":"Carlos J. Soto","email":"csoto09@gmail.com"},"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.4.0","@types/jsdom":"^21.1.0","@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","eslint":"^8.35.0","jest":"^29.5.0","jsdom":"^21.1.0","microbundle":"^0.15.1","ts-jest":"^29.0.5","typescript":"^4.9.5"},"gitHead":"1402cc8ad9529db3cf9b1bd72e0be4eafb5baa0c","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/csoto09/streak-counter/issues"},"homepage":"https://github.com/csoto09/streak-counter#readme","_id":"@cjsoto/streak-counter@0.0.1","_nodeVersion":"18.14.2","_npmVersion":"9.5.0","dist":{"integrity":"sha512-ZSI396XLityGyEe4CqCQYUGW2pHhqe+J1Iq6PXAh/TRSgIT1kX8vAkTTXNvQEItREbpiibDP5/6d8mf5AvqcKg==","shasum":"4fea193f653699069f19d37d76f5f727fdb91477","tarball":"https://registry.npmjs.org/@cjsoto/streak-counter/-/streak-counter-0.0.1.tgz","fileCount":17,"unpackedSize":27495,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCb2KBj9UXtsljZ1/L6VDZwXXWkw5ev80g35p3i1glRvQIgda+WDGMAnj1UWQ05tyaiMjpSVExGwmKVCH6KRVFnzfw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCQFaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxHA/9Hcz1/q6jVEm3Jxclg7DTJahp/Aa3FckZp4M04u+lgqTulSC6\r\nqx2KNO6hJsp+tR4eHbbM0gd2w2FDvhWelaHYpWGgNWczU4WOWpXjpNN1e38c\r\nRAgnM+2HySlq7uo8S/juSmM9H/k4YvwbC66Tuw4Y9b+QGOhbKg1GD5+PDThY\r\njQZ5K0Nt4VlidTTZAesMA0kMb/0uAxRn5hoI4VfIO+lxeEOeQy4kkLtrhAV4\r\n14QXEjvqlxJaBBjGIuUQLuaI79G8t+Qh4SPDdksICrrRZhnC+/cafW9O5Nwy\r\n2WpQHlBf9M1uZ/SmxXpefbRDTMdIbFNSq7P+2+CGgewXX6xV+cxB0m4WqVYm\r\nK5oBn+NoLUm48/rzqRoHQtVDXfFtruIf3NO3vcFf9G5O2rohS9DfsWeVsHKj\r\n2GLVE7qlDzEtCTBxoqsa50NyfxwvMUO4E/ruQyOsJWabEKoQ5svTEVwQWiJh\r\n0tuaLQlDFcgLE9T9n9FjKVw3IArInmhI3rjvCxUlpgI+kY+GMdiMmX9zECpN\r\nMEy2K1Pr/cL8n+4prpQ1lz7oD9qklY/SF+boYgEPi0LhS1MniqI6jiotjxcH\r\nO468JaUqkbXUjLE6l0mSaAb0MMV41IZUgecXdwNbUGA/larwpTui4B3bKi1D\r\nwRj9svVMx/YcySALtr6zgs3m2R2e3dJkxrk=\r\n=baWQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"cjsoto","email":"csoto09@gmail.com"},"directories":{},"maintainers":[{"name":"cjsoto","email":"csoto09@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/streak-counter_0.0.1_1678311769918_0.6926210616596418"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-08T21:42:49.827Z","0.0.1":"2023-03-08T21:42:50.176Z","modified":"2023-03-08T21:42:50.322Z"},"maintainers":[{"name":"cjsoto","email":"csoto09@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/csoto09/streak-counter#readme","repository":{"type":"git","url":"git+https://github.com/csoto09/streak-counter.git"},"author":{"name":"Carlos J. Soto","email":"csoto09@gmail.com"},"bugs":{"url":"https://github.com/csoto09/streak-counter/issues"},"license":"MIT","readme":"# `@csoto09/streak-counter` - a basic 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 @csoto09/streak-counter\n```\n\nor\n\n```shell\nnpm install @csoto09/streak-counter\n```\n\n## Usage\n\n```jsx\nimport {streakCounter} from '@csoto09/streak-counter'\n\nconst today = new Date()\nconst streak = streakCounter(localStorage, today)\n// streak return an object:\n// {\n//     currentCount: 1,\n//     lastLoginDate: \"11/11/2021\",\n//     startDate: \"11/11/2021\",\n// }\n```\n","readmeFilename":"README.md"}