{"_id":"@attilam/streak-counter","name":"@attilam/streak-counter","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@attilam/streak-counter","version":"0.0.1","repository":{"type":"git","url":"git+https://github.com/attilam/streak-counter.git"},"author":{"name":"Attila Malarik","email":"attila.malarik@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":"^28.1.2","@types/jsdom":"^16.2.14","jest":"^28.1.1","jsdom":"^19.0.0","microbundle":"^0.15.0","ts-jest":"^28.0.5","typescript":"^4.7.4"},"gitHead":"719005f02a1f1f39775e5e25c9564554353f2853","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/attilam/streak-counter/issues"},"homepage":"https://github.com/attilam/streak-counter#readme","_id":"@attilam/streak-counter@0.0.1","_nodeVersion":"14.19.3","_npmVersion":"6.14.17","dist":{"integrity":"sha512-I4dozDtgsB1V07zWM+8uQ+TAVuoJr5imDl2DiMV6SYBGNChhDTZpc33XdAlo7tf6JfQHRwTUa0AZFrZ9ovnqng==","shasum":"8be2c1b27da3ef50e4d395683e1de0b2177d035e","tarball":"https://registry.npmjs.org/@attilam/streak-counter/-/streak-counter-0.0.1.tgz","fileCount":16,"unpackedSize":34575,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkWFCQzzkOI7Hg46IeYe8xREcRFmO5IGnVmsC3K120ggIhAKm+uuBv/nifj/sfmn4ssMWS+IZZtOKqHxYeH+zEiv/C"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJisDh8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrqSQ/6Ago/YC3da3rhEBaVqKL6Xn3tQWMTdit8DRJQ2535bT5WlOKH\r\n80GWDMwmZ872XqyS1WWP+Kc2WOjgQjWEEoCNrIM9ImP93EDmIwozR+yTIB/3\r\n1GWwP2mYMKjonTiff837l8PaKsJB+brWUurL7BYW0RKSI1MBx35TPw8Fz/AW\r\nk2Awp1bNVln6DpFiqxOW5nlYUUdDcMkp+aXzVODYPVXX0DmmZUZSP1o1Vucw\r\nGU/EKYcEGwXWjOYbbaDrLqytNo+fhF0G2I9/LuTQsQIUdzx1xfbdKsEnMEPd\r\n3u9MQlMDCrNwObAfJ/o5LqyTJd5kPbGJ8NvfJUDJxUkp4y748SBId0TAMRh8\r\nYf6O4ZprCKKRgJB5Je+1F5EmmpeGOjGyMD7+7g4waM9eKiqrShirFr4PYz0x\r\nmkXITkpN7wvm2WkJGbWmZPiidvHyqseM6W8jiocj5ERlK14beVJgwYIYirxp\r\noD/kFsO7sb5FjxampLEf+ejVDVn8RJ14Eci09c/XLrOiFvDK7MNE+c0CN1FR\r\nORIFhiu415Z/LeKeZqaWlx1KKUtPcotvzT5zBg/9NaK9VYpLW0Es38RqcAk9\r\n5BOn+HT/oqHPs6BBK12uCBOATyv/1lYuGYVopV3qbaLXa6Yptzuqg6fjQcwT\r\nZb0RNdwIc0+bCWRts6oxkzHNk9N5DlgD0Y8=\r\n=IrE7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"attilam","email":"attila.malarik@gmail.com"},"directories":{},"maintainers":[{"name":"attilam","email":"attila.malarik@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/streak-counter_0.0.1_1655715964678_0.19886225613618258"},"_hasShrinkwrap":false}},"time":{"created":"2022-06-20T09:06:04.624Z","0.0.1":"2022-06-20T09:06:04.922Z","modified":"2022-06-20T09:06:05.055Z"},"maintainers":[{"name":"attilam","email":"attila.malarik@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/attilam/streak-counter#readme","repository":{"type":"git","url":"git+https://github.com/attilam/streak-counter.git"},"author":{"name":"Attila Malarik","email":"attila.malarik@gmail.com"},"bugs":{"url":"https://github.com/attilam/streak-counter/issues"},"license":"MIT","readme":"# `@attilam/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 @attilam/streak-counter\n```\n\nor\n\n```shell\nnpm install @attilam/streak-counter\n```\n\n## Usage\n\n```ts\nimport {streakCounter} from '@attilam/streak-counter';\n\nconst today = new Date();\nconst streak = streakCounter(localStorage, today);\n\n// streak returns an Object:\n// {\n//   currentCount: 1,\n//   lastLoginDate: \"06/18/2022\",\n//   startDate: \"06/18/2022\"\n// }\n```\n\n## Course Notes\n\nvia https://www.typescriptcourse.com/\n\n```shell\nyarn init -y\nyarn add -D typescript jest ts-jest @types/jest\nyarn tsc --init\nyarn ts-jest config:init\n```\n","readmeFilename":"README.md"}