{"name":"utf-8-validate","version":"1.2.0","description":"Validate UTF-8 for Web","main":"index.js","scripts":{"test":"echo \"Only testing builds, test have to be extraced from `ws`\" && exit 0","install":"node-gyp rebuild"},"repository":{"type":"git","url":"git+https://github.com/websockets/utf-8-validate.git"},"keywords":["utf-8-validate"],"author":{"name":"Einar Otto Stangvik","email":"einaros@gmail.com","url":"http://2x.io"},"license":"MIT","bugs":{"url":"https://github.com/websockets/utf-8-validate/issues"},"homepage":"https://github.com/websockets/utf-8-validate","dependencies":{"bindings":"1.2.x","nan":"^2.0.5"},"gypfile":true,"gitHead":"1b6018403eaebf2f4869208dbcd302f3c20944e9","_id":"utf-8-validate@1.2.0","_shasum":"7d41d57e60e1b36c01e79b7ac41c00ad1bf933fd","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"einaros","email":"einaros@gmail.com"},{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"7d41d57e60e1b36c01e79b7ac41c00ad1bf933fd","tarball":"http://registry-npm.ywwl.com/utf-8-validate/download/utf-8-validate-1.2.0.tgz","integrity":"sha512-rslrg/VwP1JJDtfGj/zHP5RlZoo1PbTP8eM++tCQOUd2Osiw5ILTu/TIQgLLGBptIDmoBXt3mBSubd5wdhiSFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA50gwBM9cjJ679Do0F6RvynxN099O5giBla3/G+zI2QAiA8BIA9ztPsDc/oWBq5hQ6DyrfUCoRoWbMC/u/0QhmEug=="}],"size":2817,"noattachment":false,"key":"/utf-8-validate/-/utf-8-validate-1.2.0.tgz"},"directories":{},"readme":"# utf-8-validate\n\n[![Version npm](https://img.shields.io/npm/v/utf-8-validate.svg?logo=npm)](https://www.npmjs.com/package/utf-8-validate)\n[![Linux/macOS/Windows Build](https://img.shields.io/github/actions/workflow/status/websockets/utf-8-validate/ci.yml?branch=master&label=build&logo=github)](https://github.com/websockets/utf-8-validate/actions?query=workflow%3ACI+branch%3Amaster)\n\nCheck if a buffer contains valid UTF-8 encoded text.\n\n## Installation\n\n```\nnpm install utf-8-validate --save-optional\n```\n\nThe `--save-optional` flag tells npm to save the package in your package.json\nunder the\n[`optionalDependencies`](https://docs.npmjs.com/files/package.json#optionaldependencies)\nkey.\n\n## API\n\nThe module exports a single function which takes one argument.\n\n### `isValidUTF8(buffer)`\n\nChecks whether a buffer contains valid UTF-8.\n\n#### Arguments\n\n- `buffer` - The buffer to check.\n\n#### Return value\n\n`true` if the buffer contains only correct UTF-8, else `false`.\n\n#### Example\n\n```js\n'use strict';\n\nconst isValidUTF8 = require('utf-8-validate');\n\nconst buf = Buffer.from([0xf0, 0x90, 0x80, 0x80]);\n\nconsole.log(isValidUTF8(buf));\n// => true\n```\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1439468049977,"_cnpm_publish_time":1439468049977,"dist-tags":{"latest":"6.1.0","n-api":"4.0.0-napi"}}