Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 773 Bytes

File metadata and controls

41 lines (32 loc) · 773 Bytes

chapconv

Convert chapters between different formats. See @mtillmann/chapters for details on the supported formats.

Installation

npm install -g @mtillmann/chapconv
# then use
chapconv --help

or use the npx command to run the tool without installation:

npx @mtillmann/chapconv@latest --help

convert

{convert-usage}```

## detect
```text
{detect-usage}```

## reading and writing

```bash
chapconv convert < input.xml > output.json
# or
chapconv convert -o output.json < input.xml
# or
cat input.xml | chapconv convert > output.json
# or
cat input.xml | chapconv convert -o output.json
# or
chapconv convert -i input.xml > output.json
# or
chapconv convert -i input.xml -o output.json