From d63576be0fd6da0e0da5005f5a1e766c4adca059 Mon Sep 17 00:00:00 2001 From: Gerben Date: Tue, 17 Jan 2017 00:48:44 +0100 Subject: [PATCH] CommonJS support: set module.exports = Readability --- Readability.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Readability.js b/Readability.js index 08644cc..da4702f 100644 --- a/Readability.js +++ b/Readability.js @@ -1904,3 +1904,7 @@ Readability.prototype = { }; } }; + +if (typeof module === 'object') { + module.exports = Readability; +}