{"_id":"@aliezsid/fit","_rev":"2-186c97bfb525c5d5c45a8358374b2802","name":"@aliezsid/fit","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@aliezsid/fit","version":"1.0.1","main":"dist/fit.umd.js","repository":{"type":"git","url":"git+ssh://git@github.com/barelyhuman/fit.git"},"author":{"name":"sidgroks@gmail.com","email":"sidgroks@gmail.com"},"license":"MIT","devDependencies":{"@rollup/plugin-commonjs":"^11.0.1","@rollup/plugin-node-resolve":"^7.0.0","rollup":"^1.29.0"},"scripts":{"build":"rollup -c","dev":"rollup -c -w","test":"node test/test.js","pretest":"npm run build"},"gitHead":"43d77d1b21e86bd9a810f9e5c9965110d34bb563","description":"<h1 align=\"center\"> Fit </h1> <p align=\"center\">Minimal wrapper around <code>window.fetch</code> to make my life easier</p>","bugs":{"url":"https://github.com/barelyhuman/fit/issues"},"homepage":"https://github.com/barelyhuman/fit#readme","_id":"@aliezsid/fit@1.0.1","_nodeVersion":"10.21.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-qkji1ZWTSOgOA9OihZ6GN57zUDl213KhedhVHuyO24TNyhvaYxh6I4zlczQtNArI15Yoc/9XK3G+QArE8S7kKQ==","shasum":"0b2afeab63b0c3000c51b8c0a48bd1657487b5a2","tarball":"https://registry.npmjs.org/@aliezsid/fit/-/fit-1.0.1.tgz","fileCount":4,"unpackedSize":4274,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfD4t4CRA9TVsSAnZWagAANtoP/iazNx9xU4mT5iO/fdUs\n5oNTPSjclZgWwhlA5mDLjhp/vrplI4IWAVaFEBm2//w+OClOrffCC9s77IBz\ngvpWCZI/2WPjRfvMOfwORPZCWEqKr1H2vkRVw+sTQQbSUXkyORW+D3aOFMM7\nJ4CaXcnWLsJVg+uBWaAeygX3N0azxsq4WX1pmW6bm+ynzivVDmnSXGGfzIdk\nqm/6RHz6qcc/13RAvxodDUyBzlb2StM0iX2eXjqkS0vY66QcMaK6HAISW3Oi\nlvm+rete/vi1bYGxlKot2XiXNHYc6Ut79+hn6lFGYW8m6uBoMzuZBZ06Fa78\nNJIQ9qI4yf4PN3W9Wco64dgtYEssk0yJe4Q878oddskm6mMQvmPHQC6oJrLc\ndpNN6d51Wo7ELTQx+9FOYlBan9+VSiohoUCakQmlifKiheT8mLG0uxViWiAj\nZ7wqqj8oxGJ7eiEZADH5dK81ofSy8TH9Jj4AmGVVJA0nLGh/oo2aiBhKcN1Y\nlbHgFoEpBT+z6jWtb+Z3qmAXwsAowwOXmXU7xFq+UIiOjscEP/CyhzvdIXD9\nVGq7pwYJyXuwp1MAIGtPZQU2cD+dVpdbFiTTDsDT17J3dVEv2JAejdPVZVbf\nTDWjdM0Xr3N4zUzQjgRe/QHIwlwLRbnDoI9pRop/smxYrMfc/SpBUdQHCnmA\neDuC\r\n=U40A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwBgGua93IEop7kZUlWpLY+HNFIl/CJqaeJuXkdTE4EQIgHmZyHsyrLYn902MqIZUljo6wLsnw/tHMVSvvt+uexHU="}]},"maintainers":[{"name":"aliezsid","email":"sidgroks@gmail.com"}],"_npmUser":{"name":"aliezsid","email":"sidgroks@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fit_1.0.1_1594854263958_0.3735108720576994"},"_hasShrinkwrap":false},"1.0.2":{"name":"@aliezsid/fit","version":"1.0.2","main":"dist/fit.umd.js","repository":{"type":"git","url":"git+ssh://git@github.com/barelyhuman/fit.git"},"author":{"name":"sidgroks@gmail.com","email":"sidgroks@gmail.com"},"license":"MIT","devDependencies":{"@rollup/plugin-commonjs":"^11.0.1","@rollup/plugin-node-resolve":"^7.0.0","npm-run-all":"^4.1.5","rollup":"^1.29.0","serve":"^11.3.2"},"scripts":{"build":"rollup -c","watch":"rollup -c -w","serve":"serve .","dev":"run-p 'watch' 'serve'","test":"node test/test.js","pretest":"npm run build"},"gitHead":"327f1e8dd2e9fd55c698a8125a4ae91923b3a611","description":"<h1 align=\"center\"> Fit </h1> <p align=\"center\">Minimal wrapper around <code>window.fetch</code> to make my life easier</p>","bugs":{"url":"https://github.com/barelyhuman/fit/issues"},"homepage":"https://github.com/barelyhuman/fit#readme","_id":"@aliezsid/fit@1.0.2","_nodeVersion":"10.21.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ACTOxGhK3POTIUCFNUAyZMJTYdQnFfGQ8NV+04nbGLK+HMnAj/mRdjT0m+YvezJn0BpMjXDi1OZ5Mg0Jr3pUjA==","shasum":"5973aa8b99bcee813cc812e6d89400913a1f2bce","tarball":"https://registry.npmjs.org/@aliezsid/fit/-/fit-1.0.2.tgz","fileCount":4,"unpackedSize":7103,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfD7rbCRA9TVsSAnZWagAAJjEP/AjNuXvKkJXlxTbJyyq3\nbvt+F88BKKkbiteZS7YCSod/KCJha5RbWQzvfPQnxqYt2QNrWKUp5NDoBEac\n2ecoD0Ff4mG/P1/BwdXmHNJL0Mqos58FIHeIANf15K6W3Sn9y+YOUaPQpADa\nLuwyKMYDhH1yHofFLAzaRYz9eeH2y6H6cU3aJjKRA9Wc/HX4QtQDsqBVwGZC\najisWwORxrv1XNJ/iqToReEmBnE5hkIsWUb2y93eIiO5VQ/OIV8dNpiwNspk\nW5b6VuPtgTeLlIbr6EZ9w1s4Io2+DxrdCvkfwJzMrbHdfb531o6yGF48jtqe\nDV0jmnP6Cvbeu8Dh+rHJi0EUQPEINfKZIsJ9FQSlqCTVbyKNFa1JAyxJE7v4\npmcIRpt6YY4EidkJgeTqnolPRm72fmai5OHsCyKB6YOitKKZDdEW2BNdHcgp\nBM/js1Dr78CsirI7hw+ANUCo+pgz8IkcdseUyHHdoT+9ZGWSZflQTU7LbNse\nJd92Wl6ANGLc5o4JW67xJRAcxPjnybaOg5QPT2sV6Ci3WbYNCeDOlamA+i7L\nPfDfSLU4ILsvFAGUS6+ydrWhiKMorBUs9g7JPM5ll14clY3Z7mlaU54/n75m\nfAA4B281QySjK0vMM+kuIud4VXmSsX0awt/4u05+NpinoDkEBugR9c23caiw\ni5Bh\r\n=d7HZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtPNpnYqi3N38m12oAUXl3BqQXh3hrJGI1zPb0Hy/tfwIhANwYCchTXma8VJXKmRG64kFZjdcig8cWuqmJySSMNmPV"}]},"maintainers":[{"name":"aliezsid","email":"sidgroks@gmail.com"}],"_npmUser":{"name":"aliezsid","email":"sidgroks@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fit_1.0.2_1594866394963_0.6381030872375071"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-15T23:04:23.912Z","1.0.1":"2020-07-15T23:04:24.100Z","modified":"2022-04-04T12:59:36.826Z","1.0.2":"2020-07-16T02:26:35.089Z"},"maintainers":[{"name":"aliezsid","email":"sidgroks@gmail.com"}],"description":"<h1 align=\"center\"> Fit </h1> <p align=\"center\">Minimal wrapper around <code>window.fetch</code> to make my life easier</p>","homepage":"https://github.com/barelyhuman/fit#readme","repository":{"type":"git","url":"git+ssh://git@github.com/barelyhuman/fit.git"},"author":{"name":"sidgroks@gmail.com","email":"sidgroks@gmail.com"},"bugs":{"url":"https://github.com/barelyhuman/fit/issues"},"license":"MIT","readme":"<h1 align=\"center\">\nFit\n</h1>\n<p align=\"center\">Minimal wrapper around <code>window.fetch</code> to make my life easier</p>\n\n## Disclaimer\n\nI understand the readme isn't thorough right now and only important aspects of the api are out here, for the remaining stuff you can go through the source code, it's a very simple wrapper.\n\n## Install\n\n```sh\nnpm i @aliezsid/fit\n```\n\n## Usage\n\nFit has a simple API\n\n```js\n\nfit(url).[method].then().catch();\n\n\n// Get Request\n\nconst data = await fit(\"localhost:3000/api/posts/1\").get()\n// or\nfit(\"localhost:3000/api/posts/1\").get()\n.then(data=>{\n    console.log(data);\n})\n.catch(err=>{\n    console.log(err);\n})\n\n\n\n// Post Request\n\nconst data = await fit(\"localhost:3000/api/posts/1\").post({\n    params:1\n})\n// or\nfit(\"localhost:3000/api/posts/1\").post({\n    params:1\n})\n.then(data=>{\n    console.log(data);\n})\n.catch(err=>{\n    console.log(err);\n})\n\n```\n\n## API\n\n```js\n// @param body || null - depending on method\n// @param [options] - fetch options that you want to pass through\n\nfit(url).get([options]);\nfit(url).post(body, [options]);\nfit(url).patch(body, [options]);\nfit(url).put(body, [options]);\nfit(url).delete(options);\n```\n","readmeFilename":"README.md"}