From 572edf9e1caba402c39b31c1a6c69ba5322cf993 Mon Sep 17 00:00:00 2001 From: Andreas Date: Thu, 3 Oct 2019 17:44:04 +0200 Subject: [PATCH] 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. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4c21bc9..910508b 100644 --- a/README.md +++ b/README.md @@ -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 });