{"name":"isutf8","version":"3.0.0","keywords":["charset","utf-8","utf8","text","encoding","Buffer","Uint8Array"],"author":{"url":"https://github.com/hcodes","name":"Denis Seleznev","email":"hcodes@yandex.ru"},"license":"MIT","_id":"isutf8@3.0.0","homepage":"https://github.com/hcodes/isutf8","bugs":{"url":"https://github.com/hcodes/isutf8/issues"},"dist":{"shasum":"797a0331a9736212a6972d20b602b731dd48cc98","tarball":"http://registry-npm.ywwl.com/isutf8/download/isutf8-3.0.0.tgz","fileCount":6,"integrity":"sha512-/tETZNCes3JH0qIkGmharPXscm4DSRQY4qSlGBUx0EizzX7XJ3NVTehpEaDecOeyzfecq6afwpxSe6F8eA/Brw==","signatures":[{"sig":"MEUCIQCZ7z6Q8rBu8pjs8lBjiZ6DOZEACNFS7m47Q1GI+B2lTwIgWoo9gKqkuIjeylveaJhMUXfbc6R2asLDXC3p9CzjskE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6173,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetn2PCRA9TVsSAnZWagAA7ZIQAJRaU+QZPOPuUHeMe42s\nPCZg7vH70VA/nvjk8UlrLUkdrrkpdJBAz4YPhFbaEJ2vH7i7+9G6Fd0ogypQ\nByJkesiPfdl55HOaGswM40B5QWmbnFropax4gAjvJfgps1k0Q9Aac5AkVzkA\nfBwsglDNBrZW/b1tujlnttUR2+X0+jyx4y2LNswrfxGsB1yiKT8SZFEk0hCy\nkzPEU1F0SQyufDNtsDQn2jsrNMG5tOChbgtbAcnQorAhb7b/Ueg5GiICASQg\nMCsjtPdQUdynP4tmlrU9AYxwc65Lf4bBJCZKImJcBxQSBZaNhzNaivRiRiWU\n+hQWU9D8FFOgapjipXIZnqFgpA2SV2eBekne+QWiJYL2zyKVGlr6+L5G17sw\n+FnkZNwVGoAiixWfobjmNMYdbvR68vjcMdCui8W0cThfgeG583DebhbJbfah\n+sV+aO1SqWe8uyyH6hJjxkbHeEmaup3ccJ8ItB3iY9Ozy+CmT+SLC40R3iLd\nRj7oBD7e/oxFe5763s/nECEchGkITZoJZRt16qffoKBedsBH/KmRxK5rSMli\nycnHOH8pzzxi1E3ntfnvaAhChk/UgPLPnz8to1xXIUjJIIzbRND73yrsSXeD\nNBnls1YJNY1kXdcmC/KTWOSbN42KYWgLF+AspTAX1ZXlLSeHNJGzErLxKvo2\n75OB\r\n=yWvv\r\n-----END PGP SIGNATURE-----\r\n","size":2527,"noattachment":false,"key":"/isutf8/-/isutf8-3.0.0.tgz"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">= 10.12.0"},"gitHead":"ee696d1ae4d2e798858af03178d6742f2ec32557","scripts":{"test":"npm run eslint && npm run unit","unit":"jest --config ./jest.config.js","build":"npm run clean && npm run compile","clean":"rm -rf lib","eslint":"eslint --ext .ts","compile":"tsc -p ./tsconfig.json"},"_npmUser":{"name":"hcodes","email":"hcodes@yandex.ru"},"repository":{"url":"git://github.com/hcodes/isutf8.git","type":"git"},"_npmVersion":"6.10.0","description":"Check if a Node.js Buffer or Uint8Array is utf-8","directories":{},"_nodeVersion":"11.9.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^26.0.1","eslint":"^7.0.0","ts-jest":"^25.5.0","typescript":"^3.8.3","@types/jest":"^25.2.1","@types/node":"^13.13.5","@typescript-eslint/parser":"^2.31.0","@typescript-eslint/eslint-plugin":"^2.31.0"},"_npmOperationalInternal":{"tmp":"tmp/isutf8_3.0.0_1589017999149_0.4249882837124992","host":"s3://npm-registry-packages"},"readme":"[![NPM Version](https://img.shields.io/npm/v/isutf8.svg?style=flat)](https://www.npmjs.org/package/isutf8)\n[![NPM Downloads](https://img.shields.io/npm/dm/isutf8.svg?style=flat)](https://www.npmjs.org/package/isutf8)\n[![Bundlephobia](https://badgen.net/bundlephobia/minzip/isutf8)](https://bundlephobia.com/result?p=isutf8)\n[![install size](https://packagephobia.com/badge?p=isutf8)](https://packagephobia.com/result?p=isutf8)\n\nisutf8\n======\n\nQuick check if a Node.js Buffer or Uint8Array is valid UTF-8.\n\n## Advantages\n- Ultra-small package size\n- No dependencies\n- No pre-compilation\n\n## Install\n`npm install isutf8`\n\n## Usage\n\n### CommonJS\n```js\nconst isUtf8 = require('isutf8');\n\nconst buf = Buffer.from([0xd0, 0x90]);\nconsole.log(isUtf8(buf)); // => boolean\n\n// or \n\nconst arr = new Uint8Array([0xd0, 0x90]);\nconsole.log(isUtf8(arr)); // => boolean\n\n```\n\n### ES Modules or TypeScript\n```js\nimport isUtf8 from 'isutf8';\n\nconst buf = Buffer.from([0xd0, 0x90]);\nconsole.log(isUtf8(buf)); // => boolean\n\n// or \n\nconst arr = new Uint8Array([0xd0, 0x90]);\nconsole.log(isUtf8(arr)); // => boolean\n```\n\n## License\n[MIT License](./LICENSE)\n","publish_time":1589017999273,"maintainers":[{"name":"hcodes","email":"hcodes@yandex.ru"}],"_cnpm_publish_time":1589017999273,"dist-tags":{"latest":"4.0.4"}}