Skip to content

Commit

Permalink
docs: fixed the example code in the README.md
Browse files Browse the repository at this point in the history
The second parameter of parse determines whether the given buffer contains a sprite or a project.
  • Loading branch information
stahlbauer authored and cwillisf committed Dec 15, 2023
1 parent 30954e4 commit 572edf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var fs = require('fs');
var parser = require('scratch-parser');

var buffer = fs.readFileSync('/path/to/project.sb2');
parser(buffer, function (err, project) {
parser(buffer, false, function (err, project) {
if (err) // handle the error
// do something interesting
});
Expand Down

0 comments on commit 572edf9

Please sign in to comment.