File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,20 @@ or global installation if you just want to use the cli tool:
19
19
20
20
## Usage
21
21
22
- ### CLI
22
+ ### CLI "pdf-merge"
23
23
24
24
``` txt
25
+ Usage: pdf-merge [options] <inputFiles...>
26
+
27
+ merge multiple PDF documents, or parts of them, to a new PDF document
28
+
25
29
Options:
26
30
-V, --version output the version number
27
31
-o, --output <outputFile> Merged PDF output file path
28
32
-v, --verbose Print verbose output
29
33
-s, --silent do not print any output to stdout. Overwrites --verbose
30
34
-h, --help display help for command
35
+
31
36
```
32
37
33
38
#### Example calls
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
- import fs from 'fs-extra '
3
+ import fs from 'fs'
4
4
import { program } from 'commander'
5
5
6
6
import PDFMerger from './index.js'
@@ -63,6 +63,6 @@ function main (packageJson) {
63
63
}
64
64
65
65
( ( ) => {
66
- const packageJson = fs . readJsonSync ( new URL ( './package.json' , import . meta. url ) )
66
+ const packageJson = JSON . parse ( fs . readFileSync ( new URL ( './package.json' , import . meta. url ) , 'utf-8' ) )
67
67
main ( packageJson )
68
68
} ) ( )
You can’t perform that action at this time.
0 commit comments