iconv-lite
npmv0.7.3TypeScriptConvert character encodings in pure javascript.
Safe to adopt
Yes — iconv-lite scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 68 days ago. 6 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- AMaintenance: grade A, Excellent.
Last published 68 days ago. 6 releases in the last 2 years.
- AWeight: grade A, Excellent.
Pulls in 1 transitive package, about 377 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 3 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding iconv-lite to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing iconv-lite, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >=0.10.0
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the iconv-lite README.
var iconv = require('iconv-lite');
// Convert from an encoded buffer to a js string.
str = iconv.decode(Buffer.from([0x68, 0x65, 0x6c, 0x6c, 0x6f]), 'win1251');
// Convert from a js string to an encoded buffer.
buf = iconv.encode("Sample input string", 'win1251');
// Check if encoding is supported
iconv.encodingExists("us-ascii")iconv-lite vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| iconv-litethis page | 0 | 6 | MIT | 2 months ago |
| color-convert | 299.6M | 1 | MIT | 1 day ago |
| camelcase | 95.7M | 2 | MIT | 1 day ago |
| decamelize | 62.6M | 4 | MIT | 1 day ago |
| convert-source-map | 0 | 7 | MIT | 1 day ago |
| tildify | 0 | 1 | MIT | 1 day ago |
Dependencies
Declared by iconv-lite v0.7.3. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Dev (17)
Used by
Popular packages that depend on iconv-lite.
Get and validate the raw body of a readable stream.
Node.js body parsing middleware
fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS
A querystring parser that supports nesting and arrays, with a depth limit
Various operations on Uint8Array data
An implementation of window.fetch in Node.js using Minipass streams
Relationship graph
Dependencies (left) and dependents (right) of iconv-lite.
Frequently installed together
TypeScript definitions for node
Prettier is an opinionated code formatter
A Long class for representing a 64-bit two's-complement integer value.
TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files
Module that helps you write generated functions in Node
🛡️ Faster SQL escape and format for JavaScript (Node.js, Bun, and Deno).
AWS RDS SSL certificates bundles.
sql named placeholders to unnamed compiler
Extract meaning from JS Errors
An AST-based pattern checker for JavaScript.
The fastest javascript implementation of a double-ended queue. Used by the official Redis, MongoDB, MariaDB & MySQL libraries for Node.js and many other libraries. Maintains compatability with deque.
Create HTTP error objects
Release history
6 releases in the last two years, typically about 89 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.0.0-alpha.2 | 2 months ago | 373 KB | MIT |
| 0.7.3latest | 2 months ago | 336 KB | MIT |
| 1.0.0-alpha.1 | 8 months ago | 348 KB | MIT |
| 0.7.2 | 8 months ago | 336 KB | MIT |
| 0.7.1 | 9 months ago | 343 KB | MIT |
| 0.7.0 | 1 year ago | 334 KB | MIT |
| 0.6.3 | 5 years ago | 340 KB | MIT |
| 0.6.2 | 6 years ago | 336 KB | MIT |
| 0.6.1 | 6 years ago | 334 KB | MIT |
| 0.6.0 | 6 years ago | 333 KB | MIT |
| 0.5.2 | 6 years ago | 339 KB | MIT |
| 0.5.1 | 6 years ago | 338 KB | MIT |
| 0.5.0 | 7 years ago | 338 KB | MIT |
| 0.4.24 | 8 years ago | 328 KB | MIT |
| 0.4.23 | 8 years ago | 328 KB | MIT |
Overview
iconv-lite is an npm package that convert character encodings in pure javascript. It has 6 known dependents in the graph. The latest version is 0.7.3, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need convert character encodings in pure javascript and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (18 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use iconv-lite?
Yes — iconv-lite scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 68 days ago. 6 releases in the last 2 years.
How do I install iconv-lite?
Run `npm install iconv-lite` to add iconv-lite to your npm project.
How many dependencies does iconv-lite have?
iconv-lite declares 18 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 377 KB on disk.
What license is iconv-lite released under?
iconv-lite is distributed under the MIT license.
How popular is iconv-lite?
npm does not publish download counts. Within PackageGraph's crawl, 6 known packages depend on iconv-lite.
Is iconv-lite still maintained?
The most recent release of iconv-lite (v0.7.3) was published 2 months ago.
Does iconv-lite run install scripts?
No. iconv-lite does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.