All Projects → websockets → Utf 8 Validate

websockets / Utf 8 Validate

Licence: mit
Check if a buffer contains valid UTF-8

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Utf 8 Validate

Fhir.js
Node.JS library for serializing/deserializing FHIR resources between JS/JSON and XML using various node.js XML libraries
Stars: ✭ 61 (-21.79%)
Mutual labels:  validation
Webargs
A friendly library for parsing HTTP request arguments, with built-in support for popular web frameworks, including Flask, Django, Bottle, Tornado, Pyramid, webapp2, Falcon, and aiohttp.
Stars: ✭ 1,145 (+1367.95%)
Mutual labels:  validation
Mson React
React and Material-UI Rendering Layer for MSON
Stars: ✭ 74 (-5.13%)
Mutual labels:  validation
Inspector
A tiny class validation library.
Stars: ✭ 64 (-17.95%)
Mutual labels:  validation
Schemasafe
A reasonably safe JSON Schema validator with draft-04/06/07/2019-09 support.
Stars: ✭ 67 (-14.1%)
Mutual labels:  validation
Unicorn
Unicorn - W3C's Unified Validator
Stars: ✭ 70 (-10.26%)
Mutual labels:  validation
Govalid
Data validation library for golang. [MIGRATING TO NEW ADDRESS]
Stars: ✭ 59 (-24.36%)
Mutual labels:  validation
Molvs
Molecule Validation and Standardization
Stars: ✭ 76 (-2.56%)
Mutual labels:  validation
Openapi Spring Webflux Validator
🌱 A friendly kotlin library to validate API endpoints using an OpenApi 3.0 and Swagger 2.0 specification
Stars: ✭ 67 (-14.1%)
Mutual labels:  validation
Form Object
Form object to use with Vue components for sending data to a Laravel application using axios.
Stars: ✭ 73 (-6.41%)
Mutual labels:  validation
Bagit Java
Java library to support the BagIt specification.
Stars: ✭ 65 (-16.67%)
Mutual labels:  validation
Cakephp
CakePHP: The Rapid Development Framework for PHP - Official Repository
Stars: ✭ 8,453 (+10737.18%)
Mutual labels:  validation
Angular Validate
Painless form validation for AngularJS. Powered by the jQuery Validation Plugin.
Stars: ✭ 71 (-8.97%)
Mutual labels:  validation
Slimvalidation
A validator for PHP with Respect/Validation
Stars: ✭ 62 (-20.51%)
Mutual labels:  validation
Just Validate
Lightweight (~4,5kb gzip) form validation in Javascript Vanilla, without dependencies, with customizable rules (including remote validation), customizable messages and customizable submit form with ajax helper.
Stars: ✭ 74 (-5.13%)
Mutual labels:  validation
Is
Micro check library in Golang.
Stars: ✭ 61 (-21.79%)
Mutual labels:  validation
Node Installed Check
Checks that all dependencies in your package.json have supported versions installed and complies with your specified node engine version range
Stars: ✭ 67 (-14.1%)
Mutual labels:  validation
Wtforms
A flexible forms validation and rendering library for Python.
Stars: ✭ 1,214 (+1456.41%)
Mutual labels:  validation
Laravel Multistep Forms
Responsable Multistep Form Builder for Laravel
Stars: ✭ 76 (-2.56%)
Mutual labels:  validation
React Required If
React PropType to conditionally add `.isRequired` based on other props
Stars: ✭ 72 (-7.69%)
Mutual labels:  validation

utf-8-validate

Version npm Build Status 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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].