@cmbuckley/toutf8

3.0.0 • Public • Published

toutf8

Convert any input to UTF-8 by detecting its encoding.

This uses Google's Compact Encoding Detection to guess the encoding, before converting from that encoding to UTF-8.

Installation

Install with npm globally:

npm install --global @cmbuckley/toutf8

Usage

toutf8 [inputfile]...

The toutf8 program detects the most likely character encoding of text and converts it to UTF-8. All the inputfile arguments will be read and converted. If no input files are provided, standard input is used. The converted text is printed to standard output.

toutf8 < random-encoding.txt > utf8.txt

Dependencies (2)

Dev Dependencies (1)

Package Sidebar

Install

npm i @cmbuckley/toutf8

Weekly Downloads

1

Version

3.0.0

License

MIT

Unpacked Size

3.97 kB

Total Files

5

Last publish

Collaborators

  • cmbuckley