mirror of
https://github.com/scratchfoundation/scratch-parser.git
synced 2025-06-12 13:20:45 -04:00
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:
parent
30954e4662
commit
572edf9e1c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue