Skip to content

Commit

Permalink
Made dmode, fmode demo values shorter in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nikelborm authored Dec 26, 2024
1 parent 7ce355d commit a6c1f3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ Set `options.fmode` and `options.dmode` to ensure that files/directories extract

``` js
const extract = tar.extract('./my-directory', {
dmode: parseInt(555, 8), // all dirs should be readable
fmode: parseInt(444, 8) // all files should be readable
dmode: 0o555, // all dirs should be readable
fmode: 0o444 // all files should be readable
})
```

Expand Down

0 comments on commit a6c1f3a

Please sign in to comment.