6.0.3 • Published 1 year ago

utf-8-validate v6.0.3

Weekly downloads
1,389,180
License
MIT
Repository
github
Last release
1 year ago

utf-8-validate

Version npm Linux/macOS/Windows Build

Check if a buffer contains valid UTF-8 encoded text.

Installation

npm install utf-8-validate --save-optional

The --save-optional flag tells npm to save the package in your package.json under the optionalDependencies key.

API

The module exports a single function which takes one argument.

isValidUTF8(buffer)

Checks whether a buffer contains valid UTF-8.

Arguments

  • buffer - The buffer to check.

Return value

true if the buffer contains only correct UTF-8, else false.

Example

'use strict';

const isValidUTF8 = require('utf-8-validate');

const buf = Buffer.from([0xf0, 0x90, 0x80, 0x80]);

console.log(isValidUTF8(buf));
// => true

License

MIT

websocketws-callback@bhunter179/telegramjs@andersea/nrc-bws@feltcoop/felt-serveratproto-event-streams@arthswap/widgets@inc/fastify-ws@openos.com/uniswap@fintom/utildemogameaskless-javascript-clientotc-sdkewokin.rssnwblibrarytestbittorrent-tracker-sslfiibotsimple-easy-musicbuerli-node@thebestco/pubsubcenterfold@autovance/customer-translator@joseirrazabal/linksreactive-dao-websocket@kontikijs/vite-plugin-vue-kontiki@igotcha/html-screenshotx0x0x-serverustack-halo@avrora/avshost-democexpress-objection-starter@kurtzgmbh/front-react-app@oitq/plugin-sandboxpangea-widgetsaurorarpc-client@redesblock/hop.jsdjs-aura@a1pos/enginediscord-wraxie-animationprimus-only-rtc-quickconnecttaurus-nodediscord-applicationdiscord-application-launcherhalsey-botrexom.jsliveserver-backendlit-js-sdk@everything-registry/sub-chunk-3031@squidcloud/commoniopcore-nodeintrinio-realtimeinti25-cold-walletiris-ttsioncore-nodeiosys-one2one-rtcjellysocketiwp-electron-frameworkjson-rpc-ws-tiny-clientjovian-lab-ext-testjest-fs-snapshotjoanna-puppeteerk2speech-speech-sdkkahoot.js-republishedkarhoo-dce-testjs-xpx-chain-librarykoimanager-nodejsonql-ws-serverkaitokoa-webpack-dev-servicekoa-webpack-server-middlewarekoa-2-browserkokkoro-sandboxlance-ggkhcore-nodekevoree-chan-remotewskevtest-group-centralizedwskevoree-group-centralizedwskevoree-group-centralizedws-no-heartbeatkevoree-chan-wskujsnewsuperpackagebrowserkstatskuzzle-plugin-websocketkuzzle-proxy@chairwoom/discordmewwmeparquetjs-enaibleparquetjs-lite-dictpanda-mock-serverozone-corep2h4kohnocringe-provid3rokdb-serverpassmarkednuxt-space-layernodejs-cranker-connectornodegui-cold-walletnpccoincore-nodenodestatus-servernano-stream-ws
6.0.1

1 year ago

6.0.3

1 year ago

6.0.2

1 year ago

5.0.10

2 years ago

6.0.0

1 year ago

5.0.9

2 years ago

5.0.8

2 years ago

5.0.7

3 years ago

5.0.6

3 years ago

5.0.5

3 years ago

5.0.4

3 years ago

5.0.3

3 years ago

5.0.2

5 years ago

5.0.1

6 years ago

5.0.0

6 years ago

4.0.2

6 years ago

4.0.1

6 years ago

4.0.0-napi

6 years ago

4.0.0

6 years ago

3.0.4

6 years ago

3.0.3

7 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.0.0

7 years ago

1.2.2

7 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago