1.0.22 • Published 2 years ago
epub-iconv v1.0.22
README.md
簡易型 epub 簡繁轉換
cli
npx epub-iconv --iconv cn *.epub
npx epub-iconv --iconv tw *.epub
npx epub-iconv --iconv cn "G:/Download/書蟲公主.epub"
epub-iconv
epub-iconv *.epub
Options:
--help Show help [boolean]
--cwd 搜尋檔案時的基準資料夾
[default: "G:\Users\The Project\nodejs-yarn\ws-epub\packages\epub-iconv\bin"]
--output 處理後的檔案輸出路徑 [string]
--iconv cn 轉簡 tw 轉繁 [string]
--showLog 是否輸出訊息 [boolean] [default: true]
--version Show version number [boolean]
install
npm install -g epub-iconv
demo
import { handleZipFile, handleGlob } from 'epub-iconv';
import { outputFile } from 'fs-extra';
import * as path from 'path';
handleZipFile('./res/書蟲公主.epub', {
iconv: 'cn',
})
.tap(buf => {
return outputFile('./temp/書蟲公主.epub', buf)
})
;
handleGlob([
'./res/*.epub'
], {
cwd: __dirname,
output: path.join(__dirname, 'temp'),
iconv: 'cn',
showLog: true,
});
1.0.22
2 years ago
1.0.21
3 years ago
1.0.20
3 years ago
1.0.18
4 years ago
1.0.17
4 years ago
1.0.16
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
5 years ago
1.0.12
5 years ago
1.0.11
5 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago