pillarjs/iconv-lite
Convert character encodings in pure javascript. observed · 2026-08-28
Health v2 · maintenance only
86/100
- Activity 95
- Release rhythm 67
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 112
- age_days: 5411
- days_rel: 61
- days_push: 32
- n_releases_24m: 4
Adoption not part of the score
3175 stars · 296 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
iconv-lite is a pure JavaScript library for converting text between character encodings (UTF-8, Windows-125x, ISO-8859, Shift_JIS, GBK, and many more) without native code compilation. It provides simple encode/decode APIs plus streaming support, and works in Node.js, browsers, and sandboxed environments like React Native.
Use cases
- decode a win1251-encoded buffer to a JavaScript string
- convert a legacy-encoded text file to UTF-8
- read HTTP request bodies in non-UTF-8 charsets
- transcode files between encodings via streams
- check whether a character encoding is supported
- handle Shift_JIS or Big5 text in a Node.js app
When to choose
- you need charset conversion in pure JavaScript with no native dependencies
- you're on Windows or a sandboxed environment where compiling node-iconv is impractical
- you need streaming encode/decode of encoded data
- you're building on Express/body-parser, Nodemailer, or similar ecosystems that rely on it
When to avoid
- you only need UTF-8, which Node.js handles natively
- you need maximum performance and can compile native code (node-iconv with ICU support)
- you need exotic encodings not covered by iconv-lite's supported list
Facets
library · maturity stable
serialization parser developer-tools developer-tools web-development files cross-platform browser character-encoding iconv charset-conversion text-decoding streams pure-javascript localization nodejs web-server
2 sources
- readme: https://github.com/pillarjs/iconv-lite · fetched 2026-08-28 · 116cbd5a45d4
- registry_npm: https://registry.npmjs.org/iconv-lite · fetched 2026-08-29 · 541109e71858
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pillarjs/iconv-lite | main | 86 |
For agents
markdown · JSON · MCP: product_card(name="pillarjs/iconv-lite")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem