From d16e67e05dc1203126386867d85e0b3c7d6e63ad Mon Sep 17 00:00:00 2001 From: Legend Date: Sun, 3 Apr 2022 04:25:35 +0800 Subject: [PATCH] fix example typo miss semicolon --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 768301d..1494c27 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,8 @@ The **gamedatablock** event provides you with all blocks that make up the actual ```javascript const ReplayParser = require("w3gjs/dist/lib/parsers/ReplayParser").default; -const fs = require("fs")(async () => { +const fs = require("fs"); +(async () => { const buffer = fs.readFileSync("./reforged1.w3g"); const parser = new ReplayParser(); parser.on("basic_replay_information", (info) => console.log(info));