{"_id":"@danburzo/fetch-charset-detection","_rev":"2-3ba16c7634133566ebe5f8ffb339a908","name":"@danburzo/fetch-charset-detection","dist-tags":{"latest":"0.0.0"},"versions":{"0.0.0":{"name":"@danburzo/fetch-charset-detection","version":"0.0.0","description":"Detect the encoding of a buffer and stringify it.","repository":{"type":"git","url":"git+https://github.com/Richienb/fetch-charset-detection.git"},"author":{"name":"Richie Bendall","email":"richiebendall@gmail.com"},"license":"MIT","type":"module","exports":"./dist/index.js","engines":{"node":">=12.20"},"scripts":{"build":"tsc","dev":"tsc --watch","lint":"xo","test":"xo && ava"},"keywords":["content-type","headers","http","meta","parse","buffer","node-fetch"],"dependencies":{"cheerio":"^1.0.0-rc.10","content-type":"^1.0.4","iconv-lite":"^0.6.3","type-fest":"^2.0.0"},"devDependencies":{"@richienb/tsconfig":"^0.3.0","@types/cheerio":"^0.22.30","@types/content-type":"^1.1.5","@types/node":"^16.4.13","ava":"^3.15.0","node-fetch":"3.0.0-beta.10","ts-node":"^10.1.0","typescript":"^4.3.5","xo":"^0.43.0"},"ava":{"extensions":{"ts":"module"},"nonSemVerExperiments":{"configurableModuleFormat":true},"nodeArguments":["--loader=ts-node/esm"]},"gitHead":"50634a76f73838cd1293ddea8254664857198b71","bugs":{"url":"https://github.com/Richienb/fetch-charset-detection/issues"},"homepage":"https://github.com/Richienb/fetch-charset-detection#readme","_id":"@danburzo/fetch-charset-detection@0.0.0","_nodeVersion":"16.5.0","_npmVersion":"7.24.0","dist":{"integrity":"sha512-UIP8d79aWs35M6du5TvaUnJx2PTPA25PILgTsk8yuataMHxRbzkrQlD69FKpXSRDAyY8KAJDfy0pb80x7JZd/Q==","shasum":"f2b4a98f034114e45b752822a7b45b804cdf1b12","tarball":"https://registry.npmjs.org/@danburzo/fetch-charset-detection/-/fetch-charset-detection-0.0.0.tgz","fileCount":12,"unpackedSize":8396,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzevYCRA9TVsSAnZWagAAMJYQAKFv7BbSnAG7Z0tbNeEQ\nw9fW5CSvBj+v6H4njzE2eUG4XIpOpSRKjnfmVD6VcTMa0mvdwfCkQMuHQUHW\nIwA6NHg3H8CdL4EJH+pNVnHih5jQGlZK5mff07TyLnhowsEBiyOh/e0vo5h4\n55a42E8gFUI90vwJWDGk6zWtxsTxJnFGndD/x1M+njMxlpzxXpuVkCLT5NXf\n6fYay6dxzt/7gLvwr0Yv583/VN7VGslfE4rZhwa4R6DJBNRbOdUPnuKq6rGc\nqLCNucgm/WR1rjJin7e4QPQM3x1vhTYR+42Ljdr1o6iWzRb09OY4w1cRxDf7\nhRHMylaJy6+W7IMa3t3Z0UGRHfVjEwOBkDM/ZpdTaLLrCOqtz7Zh+45lTJzc\nkb0pgbjdruSVyBS3MPaNGLRVt8mF/BUxuYcx5AbObwXdSLburVDQOav/mp7X\nUlPc3MGA9wBTqCsLED43X1c5aQKOdBjA+QCVI3j2KipfNioQX8EMRyX0fQ5d\nhGKvrjgEhyV9wL8MYiJSRNgmwfxVdmzQOZactXT8V0lTWokwUvSYsuETkO0Q\nXSWUR8Jw4R+zenkbpiTXP0cwjUXuTSVT2tYTGnOgHVsZhQTADC1jc4Tjjy39\n4i6De3WzE/mLrE2nefLkY2LSbNhRIjOA27r7L8Vh8UNjtyu6T1fvDONVJNER\nDTMX\r\n=qBnl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDoiIjVdWlPLZscPdMkvLNCmvxGtw3/2ebrNVlTn86ePAiEAoJIwbmFdTpiow0hDDODsVGx/fKqzxEmVn4jC5V/23DM="}]},"_npmUser":{"name":"danburzo","email":"dan@danburzo.ro"},"directories":{},"maintainers":[{"name":"danburzo","email":"dan@danburzo.ro"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-charset-detection_0.0.0_1632056206622_0.5903644635290821"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-19T12:56:46.556Z","0.0.0":"2021-09-19T12:56:46.743Z","modified":"2022-04-05T02:39:29.292Z"},"maintainers":[{"name":"danburzo","email":"dan@danburzo.ro"}],"description":"Detect the encoding of a buffer and stringify it.","homepage":"https://github.com/Richienb/fetch-charset-detection#readme","keywords":["content-type","headers","http","meta","parse","buffer","node-fetch"],"repository":{"type":"git","url":"git+https://github.com/Richienb/fetch-charset-detection.git"},"author":{"name":"Richie Bendall","email":"richiebendall@gmail.com"},"bugs":{"url":"https://github.com/Richienb/fetch-charset-detection/issues"},"license":"MIT","readme":"# fetch-charset-detection\n\nDetect the encoding of a buffer and stringify it. Originally from [node-fetch](https://github.com/node-fetch/node-fetch).\n\n## Install\n\n```sh\nnpm install fetch-charset-detection\n```\n\n## Usage\n\n```js\nimport convertBody from 'fetch-charset-detection';\n\nconvertBody(content);\n```\n\n## API\n\n### convertBody(content, headers?)\n\n#### content\n\nType: [`Buffer`](https://nodejs.org/api/buffer.html#buffer_class_buffer) | [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays)\n\nThe content to stringify.\n\n#### headers\n\nType: [`Headers`](https://developer.mozilla.org/en-US/docs/Web/API/Headers)\n\nThe HTTP headers provided with the content.\n","readmeFilename":"readme.md"}