Socket
Socket
Sign inDemoInstall

uv

Package Overview
Dependencies
0
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    uv

Ultrafast UTF-8 data validation


Version published
Weekly downloads
20K
decreased by-1.66%
Maintainers
1
Install size
15.3 kB
Created
Weekly downloads
 

Readme

Source

uv

Ultrafast UTF-8 data validation

Installation

npm i uv

Works with Node.js 6.0+!

Usage

uv exports a function that accepts a buffer as an argument and validate it.

const uv = require('uv');

const someBuffer = Buffer.from('Some UTF-8 data');

uv(someBuffer); // => true

uv(Buffer.from([255, 254, 253, 252, 251, 250])); // => false

Comparison with other UTF-8 validation packages

In most cases it is faster than other alternatives available on npm, please run the bench.js file from the github repo for a benchmark on your machine.

Keywords

FAQs

Last updated on 19 May 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc