Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7017d56

Browse filesBrowse files
Update README.md (#506)
`Buffer()` is deprecated due to security and usability issues
1 parent dcf6de0 commit 7017d56
Copy full SHA for 7017d56

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ You need to convert the result of `db.export` to a buffer
194194
const fs = require("fs");
195195
// [...] (create the database)
196196
const data = db.export();
197-
const buffer = new Buffer(data);
197+
const buffer = Buffer.from(data);
198198
fs.writeFileSync("filename.sqlite", buffer);
199199
```
200200

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.