From 5359fc354eb9b09f42a2e9b2a3ce46439d4abf60 Mon Sep 17 00:00:00 2001 From: Bryan Burgers Date: Fri, 26 Feb 2016 09:47:28 -0600 Subject: [PATCH] Export fromXmlAsync from the module Re-export Document.fromXmlAsync as libxmljs.fromXmlAsync to match the documentation. --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 86fe1f93..b226f2a3 100644 --- a/index.js +++ b/index.js @@ -8,6 +8,7 @@ var Document = require('./lib/document'); /// parse an xml string and return a Document module.exports.parseXml = Document.fromXml; +module.exports.fromXmlAsync = Document.fromXmlAsync; /// parse an html string and return a Document module.exports.parseHtml = Document.fromHtml;