Skip to content

Commit 1c6907b

Browse files
committed
docs: refine README
1 parent a027807 commit 1c6907b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/ghostscript/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ const mod = await Module()
2020
const working = '/working'
2121

2222
mod.FS.mkdir(working)
23-
mod.FS.mount(mod.NODEFS, { root: _dirname }, working)
23+
mod.FS.mount(mod.NODEFS, { root: __dirname }, working)
2424
mod.FS.chdir(working)
2525

26-
await callMain([
26+
await mod.callMain([
2727
'-q',
2828
'-dSAFER',
2929
'-dBATCH',

packages/ghoulscript/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ yarn add @privyid/ghoulscript
99

1010
## How to Use
1111

12-
### Using with Browser (Vite)
12+
### Using on Browser (Vite)
1313

1414
```ts
1515
import { optimizePDF } from '@privyid/ghoulscript'
@@ -27,7 +27,7 @@ input.addEventListener('change', async () => {
2727
})
2828
```
2929

30-
### Using with NodeJS
30+
### Using on NodeJS
3131
```ts
3232
import fs from 'node:fs/promises'
3333
import { resolve } from 'node:path'
@@ -109,7 +109,7 @@ const output = await addPassword(buffer, '123456', '112233')
109109
await fs.writeFile(resolve(__dirname, './sample.protected.pdf'), output)
110110
```
111111

112-
It equivalent with compressPDF's `userPassword` and `ownerPassword` options
112+
It's equal to compressPDF's `userPassword` and `ownerPassword` options
113113

114114
### removePassword (file: Buffer, oldPassword: string)
115115

@@ -124,7 +124,7 @@ const output = await removePassword(buffer, '123456')
124124
await fs.writeFile(resolve(__dirname, './sample.unprotected.pdf'), output)
125125
```
126126

127-
It equivalent with compressPDF's `keepPassword: false`
127+
It's equal to compressPDF's `keepPassword: false`
128128

129129
### renderPageAsImage (file: Buffer, page: number = 1, options?: RenderOptions)
130130

0 commit comments

Comments
 (0)