Security News
Internet Archive Hacked, 31 Million Record Compromised
The Internet Archive's "Wayback Machine" has been hacked and defaced, with 31 millions records compromised.
Quick check if a Node.js Buffer or Uint8Array is UTF-8.
npm install isutf8
'use strict';
const isUtf8 = require('isutf8');
const buf = Buffer.from([0xd0, 0x90]);
console.log(isUtf8(buf)); // => true
// or
const arr = new Uint8Array([0xd0, 0x90]);
console.log(isUtf8(arr)); // => true
import isUtf8 from 'isutf8';
const buf = Buffer.from([0xd0, 0x90]);
console.log(isUtf8(buf)); // => true
// or
const arr = new Uint8Array([0xd0, 0x90]);
console.log(isUtf8(arr)); // => true
v4.0.0
FAQs
Check if a Node.js Buffer or Uint8Array is UTF-8
The npm package isutf8 receives a total of 81,045 weekly downloads. As such, isutf8 popularity was classified as popular.
We found that isutf8 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
The Internet Archive's "Wayback Machine" has been hacked and defaced, with 31 millions records compromised.
Security News
TC39 is meeting in Tokyo this week and they have approved nearly a dozen proposals to advance to the next stages.
Security News
Our threat research team breaks down two malicious npm packages designed to exploit developer trust, steal your data, and destroy data on your machine.