1.0.1 • Published 4 years ago

utf8izer v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

utf8izer

npm.io npm.io npm.io

Encode files from CLI or API, comfortably.

NPM

Installation

$ npm i -g utf8izer

Usage

There is an API and a CLI available for utf8izer.

CLI usage

Pass the files and, optionally, the original and final encodings:

utf8izer --from ascii --to utf8 file1.csv file2.txt file3.data

After this, a small report will be given by console.

API usage

Import the module:

const Utf8izer = require("utf8izer");

Use the main class:

Utf8izer.convertFiles(["file1.csv", "file2.txt", "file3.data"], {
    from: "ascii",
    to: "utf8"
}).then(function(info) {
    if(info.errors.length) {
        return console.log("Errors on UTF8 file conversions:", info.errors);
    }
});

You do not need to catch the promise, as it will never be thrown.

Issues

Report the issues you found at the issues tab of the project.

License

This project is licensed under WTFPL (do What The Fuck you want Public License), so simple.

1.0.1

4 years ago

1.0.0

4 years ago