From 91187361b12988ca9a90b028c9e6006ca066be41 Mon Sep 17 00:00:00 2001 From: Abiria Date: Fri, 5 Apr 2024 12:24:54 +0900 Subject: [PATCH] docs: fix typos in v5 document `fast-xml-parse` (#650) * docs: fix typo `fast-xml-parse` to `fast-xml-parser` * docs: fix typos in `ValueParsers.md` --- docs/v5/1. Getting Started.md | 4 ++-- docs/v5/5. ValueParsers.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/v5/1. Getting Started.md b/docs/v5/1. Getting Started.md index a538518f..8021d10e 100644 --- a/docs/v5/1. Getting Started.md +++ b/docs/v5/1. Getting Started.md @@ -3,7 +3,7 @@ Example with no configuration ```js -const XMLParser = require("fast-xml-parse/v5/XMLParser") +const XMLParser = require("fast-xml-parser/v5/XMLParser") const parser = new XMLParser(); //read xmlData your own let result = parser.parse(xmlData, true); @@ -12,7 +12,7 @@ let result = parser.parse(xmlData, true); The default response of parse is built by `JsObjOutputBuilder`. FXP v5 comes with 2 more output builders. And you can set your custom output builder too to customize the output. ```js -const JsObjOutputBuilder = require("fast-xml-parse/v5/OutputBuilders/JsObjBuilder"); +const JsObjOutputBuilder = require("fast-xml-parser/v5/OutputBuilders/JsObjBuilder"); const parser = new XMLParser({ OutputBuilder: new JsObjOutputBuilder() diff --git a/docs/v5/5. ValueParsers.md b/docs/v5/5. ValueParsers.md index 446c3f00..36b3ac19 100644 --- a/docs/v5/5. ValueParsers.md +++ b/docs/v5/5. ValueParsers.md @@ -12,7 +12,7 @@ Entity and date parsers have to be set. Example when you don't override default parsers ```js -const JsObjOutputBuilder = require("fast-xml-parse/v5/OutputBuilders/JsObjBuilder"); +const JsObjOutputBuilder = require("fast-xml-parser/v5/OutputBuilders/JsObjBuilder"); const xmlData = ` 1234 @@ -44,7 +44,7 @@ Output But if you override it then it will use sequence in the order you defined. ```js -const JsObjOutputBuilder = require("fast-xml-parse/v5/OutputBuilders/JsObjBuilder"); +const JsObjOutputBuilder = require("fast-xml-parser/v5/OutputBuilders/JsObjBuilder"); const xmlData = ` 1234 @@ -95,4 +95,4 @@ const outputBuilderOptions = { ] } } -``` \ No newline at end of file +```