diff --git a/core/language/en-GB/Docs/ModuleTypes.multids b/core/language/en-GB/Docs/ModuleTypes.multids index 99c6e7cf8..c94056db5 100644 --- a/core/language/en-GB/Docs/ModuleTypes.multids +++ b/core/language/en-GB/Docs/ModuleTypes.multids @@ -16,6 +16,7 @@ tiddlerdeserializer: Converts different content types into tiddlers. tiddlerfield: Defines the behaviour of an individual tiddler field. tiddlermethod: Adds methods to the `$tw.Tiddler` prototype. utils: Adds methods to `$tw.utils`. +utils-node: Adds Node.js-specific methods to `$tw.utils`. widget: Widgets encapsulate DOM rendering and refreshing. wikimethod: Adds methods to `$tw.Wiki`. wikirule: Individual parser rules for the main WikiText parser. diff --git a/core/modules/startup.js b/core/modules/startup.js index 81aaca530..83223f1f4 100755 --- a/core/modules/startup.js +++ b/core/modules/startup.js @@ -18,6 +18,9 @@ exports.startup = function() { var modules,n,m,f,commander; // Load modules $tw.modules.applyMethods("utils",$tw.utils); + if($tw.node) { + $tw.modules.applyMethods("utils-node",$tw.utils); + } $tw.modules.applyMethods("global",$tw); $tw.modules.applyMethods("config",$tw.config); if($tw.browser) {