{"id":19332459,"url":"https://github.com/yuchi/titanium-platforms","last_synced_at":"2026-06-15T03:31:58.734Z","repository":{"id":36376180,"uuid":"40681036","full_name":"yuchi/titanium-platforms","owner":"yuchi","description":"Titanium™ SDK utils for device conditional code","archived":false,"fork":false,"pushed_at":"2015-08-13T20:49:12.000Z","size":120,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T07:17:58.386Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuchi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-13T20:47:56.000Z","updated_at":"2015-08-13T21:39:50.000Z","dependencies_parsed_at":"2022-09-06T06:22:12.316Z","dependency_job_id":null,"html_url":"https://github.com/yuchi/titanium-platforms","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yuchi/titanium-platforms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuchi%2Ftitanium-platforms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuchi%2Ftitanium-platforms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuchi%2Ftitanium-platforms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuchi%2Ftitanium-platforms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuchi","download_url":"https://codeload.github.com/yuchi/titanium-platforms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuchi%2Ftitanium-platforms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34346867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T02:45:55.929Z","updated_at":"2026-06-15T03:31:58.712Z","avatar_url":"https://github.com/yuchi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"titanium-platforms\n==================\n\nTitanium™ SDK utils for device conditional code.\n\nUsage\n-----\n\nTo be used **only** with [Titaniumifier](https://github.com/smclab/titaniumifier) in both package mode and in [app mode](https://github.com/smclab/titaniumifier/wiki/Host-mode).\n\nIf you’re using Alloy just use one of the [built-in `OS_*` constants](http://docs.appcelerator.com/platform/latest/#!/guide/Alloy_Controllers-section-34636384_AlloyControllers-ConditionalCode).\n\n#### Install\n\n```bash\n$ npm install --save titanium-platforms\n```\n\n#### ECMAScript 5\n\n```js\nvar OS_ANDROID = require('titanium-platforms/os/android');\nvar OS_IOS = require('titanium-platforms/os/ios');\nvar OS_MOBILEWEB = require('titanium-platforms/os/mobileweb');\nvar OS_WINDOWS = require('titanium-platforms/os/windows');\n```\n\n#### ECMAScript 2015 (aka ES6)\n\nTo be used with [Babel pre-compilation](https://github.com/smclab/titaniumifier/wiki/Host-mode#usage-with-babeljs), for example.\n\n```js\nimport OS_ANDROID from 'titanium-platforms/os/android';\nimport OS_IOS from 'titanium-platforms/os/ios';\nimport OS_MOBILEWEB from 'titanium-platforms/os/mobileweb';\nimport OS_WINDOWS from 'titanium-platforms/os/windows';\n```\n\nLicense\n-------\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuchi%2Ftitanium-platforms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuchi%2Ftitanium-platforms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuchi%2Ftitanium-platforms/lists"}