Get unlimited public & private packages + team-based management with npm Teams.Learn more »

iconv-bat

0.0.5 • Public • Published

iconv-bat

Convert file/directory between encodings.

Usage

CLI Tool

npm install -g iconv-bat
iconv-bat -f gbk -t utf-8 path/to/directory output/to/directory
iconv-bat path/to/directory output/to/directory
iconv-bat path/to/directory

In Node

var IconvBat = require('iconv-bat');
var iconvBat = new IconvBat('gbk', 'utf-8');
iconvBat.convertFile('path/to/file', 'output/to/file', callback);
iconvBat.convertFile('path/to/file', callback);
iconvBat.convertDirectory('path/to/directory', 'output/to/directory', callback);
iconvBat.convertDirectory('path/to/directory', callback);

Keywords

none

Install

npm i iconv-bat

DownloadsWeekly Downloads

1

Version

0.0.5

License

none

Last publish

Collaborators

  • avatar