Update formatting

This commit is contained in:
Isabelle Viktoria Maciohsek
2022-01-29 20:36:07 +02:00
parent a2f959334b
commit c56b5a11da
16 changed files with 23 additions and 22 deletions

View File

@ -8,8 +8,8 @@ lastUpdated: 2020-10-22T20:24:04+03:00
Returns an array of lines from the specified file.
- Use `fs.readFileSync()` to create a `Buffer` from a file.
- Convert buffer to string using `buf.toString(encoding)` function.
- Use `String.prototype.split(\n)` to create an array of lines from the contents of the file.
- Convert buffer to string using `Buffer.toString(encoding)` function.
- Use `String.prototype.split('\n')` to create an array of lines from the contents of the file.
```js
const fs = require('fs');