Skip to content

Commit

Permalink
fix: do not use fs-extra in cli
Browse files Browse the repository at this point in the history
  • Loading branch information
mojoaxel committed Jan 27, 2024
1 parent a329970 commit 064383a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,20 @@ or global installation if you just want to use the cli tool:

## Usage

### CLI
### CLI "pdf-merge"

```txt
Usage: pdf-merge [options] <inputFiles...>
merge multiple PDF documents, or parts of them, to a new PDF document
Options:
-V, --version output the version number
-o, --output <outputFile> Merged PDF output file path
-v, --verbose Print verbose output
-s, --silent do not print any output to stdout. Overwrites --verbose
-h, --help display help for command
```

#### Example calls
Expand Down
4 changes: 2 additions & 2 deletions cli.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

import fs from 'fs-extra'
import fs from 'fs'
import { program } from 'commander'

import PDFMerger from './index.js'
Expand Down Expand Up @@ -63,6 +63,6 @@ function main (packageJson) {
}

(() => {
const packageJson = fs.readJsonSync(new URL('./package.json', import.meta.url))
const packageJson = JSON.parse(fs.readFileSync(new URL('./package.json', import.meta.url), 'utf-8'))
main(packageJson)
})()

0 comments on commit 064383a

Please sign in to comment.