NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #4499 most downloaded on npm
Convert and detect character encodings in JavaScript
Last release 20 days ago
14 Sep 2026
Release timing varies
gaps range from 2 weeks to 2.5 years
Nearly every release is documented
notes for 15 of 15 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
15 releases · first in 2014
Include TypeScript definitions ( index.d.ts ) migrated from DefinitelyTyped. Installing @types/encoding-japanese separately is no longer required. Tha
Include TypeScript definitions (index.d.ts) migrated from DefinitelyTyped. Installing @types/encoding-japanese separately is no longer required. Thanks to DefinitelyTyped contributors!
index.d.ts and the "types" field to package.json@types/encoding-japanese 2.2.1.SJIS, EUCJP and JIS in #67U+301C (〜) being mapped to JIS X 0212 instead of JIS X 0208 when converting to EUCJP and JIS (e.g., 0x8FA1C1 instead of 0xA1C1 in EUCJP) in #670x7F being converted as 0x7E instead of falling back to ? on conversion from SJIS (b848595)tsc, and include them in npm test (#68).eslintrc.json to flat config with @stylistic/eslint-plugin (#66)Full Changelog: 2.3.0...2.4.0
One column per quarter.
index.d.ts) migrated from DefinitelyTyped. Installing @types/encoding-japanese separately is no longer required. Thanks to DefinitelyTyped contributors! (#68)SJIS, EUCJP and JIS (e.g., U+301C (〜) is now converted to 0x8160 in SJIS and 0xA1C1 in EUCJP). (#67)U+301C (〜) being mapped to JIS X 0212 instead of JIS X 0208 when converting to EUCJP and JIS (e.g., 0x8FA1C1 instead of 0xA1C1 in EUCJP). (#67)0x7F being converted as 0x7E instead of falling back to ? on conversion from SJIS. (b848595)tsc, and include them in npm test..eslintrc.json to flat config with @stylistic/eslint-plugin. (1e98062)feat: add CP932 extensions in SJIS detection and conversion ( #65 ) (Resolves #54 , #22 )
0xFA40 - 0xFC4B)0xEEF9 to their JIS X 0208 counterpartsU+30F8/U+30F9) in toHiraganaCase and toKatakanaCase by @mahirhir in #62engines.node to >=18.0.0 to match the tested versions (c6008d0)power-assert and uglifyify (4cf36da, 1142dd9)Full Changelog: 2.2.0...2.3.0
SJIS detection and conversion. (#65, #54, #22)
0xFA40 - 0xFC4B).0xEEF9 to their JIS X 0208 counterparts.U+30F8 / U+30F9) in toHiraganaCase and toKatakanaCase. (#62) Thanks @mahirhirEncoding.detect to treat C0 control characters as valid UTF-8. (#64, #49) Thanks @hiros0921engines.node to >=18.0.0 to match the tested versions. (c6008d0)Add fallback: 'ignore' option in Encoding.convert . Thanks #41 , #42 by @syumai
fallback: 'ignore' option in Encoding.convert. Thanks #41, #42 by @syumaifallback: 'error' option in Encoding.convert. #44 by @polygonplanetmocha) to the latest versions by @polygonplanet in (a7bded8)fallback option of convert in README.md (2a522ea)Full Changelog: 2.1.0...2.2.0
fallback: 'ignore' option in Encoding.convert. (#41) Thanks @syumaifallback: 'error' option in Encoding.convert. (#44)mocha) to the latest versions. (a7bded8)fallback option of convert in README.md (2a522ea)Remove output source map encoding.min.js.map from bundles
encoding.min.js.map from bundles (b963656).travis.yml) to GitHub Actions (.github/workflows/ci.yml) by @polygonplanet in (8c4612e)eslint, mocha, uglify-js) to the latest versions by @polygonplanet in (f092635)detect, convert, urlEncode/urlDecode, base64Encode/base64Decode, codeToString/stringToCode, Japanese Zenkaku/Hankaku conversion) in README.md.Full Changelog: 2.0.0...2.1.0
encoding.min.js.map from bundles to simplify build and reduce distribution size. (b963656).travis.yml) to GitHub Actions (.github/workflows/ci.yml). (8c4612e)eslint, mocha, uglify-js) to the latest versions. (f092635)detect,
convert,
urlEncode/urlDecode,
base64Encode/base64Decode,
codeToString/stringToCode,
Japanese Zenkaku/Hankaku conversion
) in README.md.Fix deprecated Buffer constructor by @polygonplanet in
fallback option to Encoding.convert (5622bfa) Thanks #23 by @tohutohu, fallback types by @p-chanEncoding.version (bd3d6ef)bower support (981ea39)Full Changelog: 1.0.30...2.0.0
Fix bug for can't find module by @polygonplanet in #9
Full Changelog: 1.0.29...1.0.30
Fix can't find module in using 'require'.
Drop Gruntfile.js and modularize the code base by browserify.
Gruntfile.js and modularize the code base by browserify.Fix the grammar in README.md (#4) Thanks @iku000888
Fix argument decision of the detect method (#3) Thanks @spring-raining
Add base64Encode and base64Decode
base64Encode and base64Decode (729bb4f)Fix internal isObject() method for old IE browsers (#2) (32f6c02) Thanks @dmitrygorbenko
isObject() method for old IE browsers (#2) (32f6c02) Thanks @dmitrygorbenko### Features * Add bower.json
Optimize process speed of urlEncode.
urlEncode. (b5f16d4)* No API changes.
Your coding agent can read these notes before it upgrades. Set up the MCP server →