Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

epub-iconv

bluelovers44ISC1.0.22TypeScript support: included

簡易型 epub 簡繁轉換

Google Play Books, archive, book, books, chapter, char, character, characters, chinese, cjk, cli, cn, cn2tw, comic, conv, conversion, convert, creator, ebook, epub, epub-maker, epub-maker2, epub2, epub3, generator, google book, google books, google play, greedy, hanja, hanzi, ibook, japanese, jp2zhs, jp2zht, kanji, maker, manifest, metadata, mobile, node-novel, novel, regex, regexp, regular, regular expression, simplified, slugify, str-util, table, traditional, transform, tw, tw2cn, txt, unicode, util, volume, words, zh, zh-cn, zh-tw, zh2jp, zhs, zht, zip

readme

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,
});

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.22 (2023-09-20)

📌 Dependencies

1.0.21 (2022-11-03)

🛠 Build System

🔖 Miscellaneous

1.0.20 (2022-05-16)

♻️ Chores

1.0.19 (2022-05-16)

♻️ Chores

1.0.18 (2021-08-10)

♻️ Chores

1.0.17 (2021-07-21)

♻️ Chores

1.0.16 (2021-07-11)

♻️ Chores

1.0.15 (2021-07-08)

🔖 Miscellaneous

1.0.14 (2021-02-12)

♻️ Chores

1.0.13 (2020-08-13)

♻️ Chores

1.0.12 (2020-06-20)

♻️ Chores

1.0.11 (2020-06-09)

Features