JSPM

charset-convert

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q36181F
  • License MIT

Command line tool to convert text file from one charset to another

Package Exports

  • charset-convert

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (charset-convert) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

charset-convert

Command line utility to convert text file from one charset to another.

Dependency

  • node.js, npm
  • iconv-lite (auto installed as dependency)

Install

[sudo] npm install -g charset-convert

How To Use

charset-convert <in file> <out file> -i <in encoding> -o <out encoding>

Example:

charset-convert demo-gbk.txt demo-utf8.txt -i gbk -o utf8

How It Works

This CLI utility is implemented based on iconv-lite, a great charset decoding/encoding module for node.js

Credits

A simple tool created by Raymond Xie, to install IPA package with command line.

Any comments are welcome.