node.js os module for Titanium
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.gitignore
.jshintrc
.npmignore
.travis.yml
Gruntfile.js
LICENSE
README.md
package.json
titanium-os.js

README.md

titanium-os

node.js-style os for Titanium. It can serve as a drop-in replacement for node.js os for use with browserify.

install

$ npm install titanium-os
$ cp node_modules/titanium-os/titanium-os.js /path/to/project/Resources/

example

var os = require("titanium-os");
console.log(os.platform() + ' is the same as ' + Ti.Platform.name);