Global

Methods

require(module, callback) → {object}

Parameters:
Name Type Argument Description
module string
callback function <optional>
Source:
  • ktn.js, line 16
Throws:
Error
Returns:
exports
Type
object
Example
  // module.js:
  //   exports.fn = function(){ console.log('hello.'); };
  var module = require('/path/to/module.js');
  module.fn(); // hello.