Have ideas to improve npm?Join in the discussion! »

    @cmbuckley/toutf8

    1.1.3 • 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 provides, standard input is used. The converted text is printed to standard output.

    toutf8 < random-encoding.txt > utf8.txt

    Install

    npm i @cmbuckley/toutf8

    DownloadsWeekly Downloads

    1

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    2.81 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar