Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fs multiple constants example #33281

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix linting errors
Ethan-Arrowood authored May 7, 2020

Unverified

This user has not yet uploaded their public signing key.
commit 6286df58c4ecb904cebef2bef248949c89f2d267
8 changes: 4 additions & 4 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
@@ -5372,13 +5372,13 @@ To use more than one constant, use the bitwise OR `|` operator.
Example:

```js
const fs = require('fs')
const fs = require('fs');

const flags = fs.constants.O_RDWR | fs.constants.O_CREAT | fs.constants.O_EXCL
const flags = fs.constants.O_RDWR | fs.constants.O_CREAT | fs.constants.O_EXCL;

fs.open('<file>', flags, (err, fd) => {
fs.open('<file>', flags, (err, fd) => {
// ...
})
});
```

### File Access Constants