https://github.com/eclipsesource/tabris-js-node
https://github.com/eclipsesource/tabris-js-node
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eclipsesource/tabris-js-node
- Owner: eclipsesource
- Created: 2015-04-21T12:22:53.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-15T10:24:19.000Z (over 10 years ago)
- Last Synced: 2025-03-24T09:47:03.348Z (over 1 year ago)
- Language: JavaScript
- Size: 26.4 KB
- Stars: 3
- Watchers: 20
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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 `__dirname` and `__filename` variables.
* The global object `global`.
This module provides some of the core modules of node.js in tabris.js, specifically:
* `assert` - works fully
* `util` - works fully
* `punycode` - works fully
* `path` - works fully
* `constants` - works fully
* `events` - works fully
* `process` - works within limits, specifically `process.nextTick` is implemented.
* `timers` - works within limits: setTimeout ignores additional arguments for callback.
* `console` - provides the additional methods `dir`, `time`, `timeEnd`, `trace` and `assert`
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](https://github.com/joyent/node) is published under the MIT license.
* All other code published under BSD 3-Clause.