https://github.com/postor/batch-convert-encoding
batch convert encoding
https://github.com/postor/batch-convert-encoding
Last synced: 2 months ago
JSON representation
batch convert encoding
- Host: GitHub
- URL: https://github.com/postor/batch-convert-encoding
- Owner: postor
- License: mit
- Created: 2022-04-17T03:33:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-17T06:58:53.000Z (about 3 years ago)
- Last Synced: 2025-02-27T01:49:09.667Z (3 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# batch-convert-encoding
batch convert encoding | 批量转换编码```
npx batch-convert-encoding **/*.txt utf-8
```
or```
npm i batch-convert-encoding -g
batch-convert-encoding **/*.txt utf-8
```help
```
Usage: batch-convert-encoding [options] [glob] [to]CLI to convert encoding in batch
Arguments:
glob glob match like `**/*.txt`
toencoding to encoding (default: "utf-8")Options:
-o, --overwrite overwrite old file | 覆盖
-p, --prefix output file prefix (default: "") | 前缀
-s, --suffix output file suffix, `_[encoding]` if not specified | 后缀
-f, --fromencoding from encoding, auto detect if not specified | 原编码
-d, --dryrun dry run, not writing files
-h, --help
```