0.1.0 • Published 10 years ago
tabris-js-node v0.1.0
Node compatibility for Tabris.js
Tabris.js already provides some built-in node.js compatibility:
- The module system uses the same API (
module,exports,require). - The
__dirnameand__filenamevariables. - The global object
global.
This module provides some of the core modules of node.js in tabris.js, specifically:
assert- works fullyutil- works fullypunycode- works fullypath- works fullyconstants- works fullyevents- works fullyprocess- works within limits, specificallyprocess.nextTickis implemented.timers- works within limits: setTimeout ignores additional arguments for callback.console- provides the additional methodsdir,time,timeEnd,traceandassert
For supported node modules to be available at runtime, this module has to be required first, i.e.:
require("tabris-js-node");
var path = require("path");License
- Code copied from node is published under the MIT license.
- All other code published under BSD 3-Clause.