You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

jschardet

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jschardet

Character encoding auto-detection in JavaScript (port of python's chardet)

3.1.4
latest
Source
npmnpm
Version published
Weekly downloads
503K
13.42%
Maintainers
1
Weekly downloads
 
Created

What is jschardet?

jschardet is a JavaScript library for character encoding detection. It is a port of the Python chardet library and is used to detect the character encoding of a given text. This can be particularly useful when dealing with text data from various sources where the encoding is unknown.

What are jschardet's main functionalities?

Detect Character Encoding

This feature allows you to detect the character encoding of a given text. The `detect` method returns an object with the encoding and confidence level.

const jschardet = require('jschardet');
const text = 'Some text with unknown encoding';
const result = jschardet.detect(text);
console.log(result);

Other packages similar to jschardet

Keywords

encoding

FAQs

Package last updated on 30 Sep 2024

Did you know?

Socket

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