6.0.4 • Published 1 year ago

utf-8-validate v6.0.4

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-clientewokin.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/common@triframe/arbitertbrtc-serversyncloungeserversyncloungesockettabby-discord-presencetendermint.jssvelte-runnertest-hydrogenwido-widgetwido-widget-v4wido-widget-v5wisp-server-nodewafrwebsockets-streaming-audiowork-with-service-tadamoryws-stream-tunnelwx-buildwhatsapp_web_serverwhir.iowsdwsmsgbrokerws-remotingws-restws4ws5ws-broadcastws-communicatortelegramteledrive-clienttelegram-securityandstufftelegramnolessersumcore-nodetemp-opti-stake-sdkstorytimespeakerbob-clientspinthewebspreadcastspirit-island-renderersuppainterswagchat-sdksvcdthrashthorin-plugin-clusterthree-cesiumsvjudge-helperventify-socketviacore-nodevideo-editlyvexlib-js@dls-controls/cs-web-lib@divswap/widgets
6.0.4

1 year ago

6.0.1

2 years ago

6.0.3

2 years ago

6.0.2

2 years ago

5.0.10

3 years ago

6.0.0

2 years ago

5.0.9

3 years ago

5.0.8

3 years ago

5.0.7

4 years ago

5.0.6

4 years ago

5.0.5

4 years ago

5.0.4

4 years ago

5.0.3

5 years ago

5.0.2

6 years ago

5.0.1

7 years ago

5.0.0

7 years ago

4.0.2

7 years ago

4.0.1

7 years ago

4.0.0-napi

8 years ago

4.0.0

8 years ago

3.0.4

8 years ago

3.0.3

8 years ago

3.0.2

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.0.0

9 years ago

1.2.2

9 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago