Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 439 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 439 Bytes

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);