docs: fixed the example code in the README.md

The second parameter of parse determines whether the given buffer contains a sprite or a project.
This commit is contained in:
Andreas 2019-10-03 17:44:04 +02:00 committed by Christopher Willis-Ford
parent 30954e4662
commit 572edf9e1c

View file

@ -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
});