{"id":18074167,"url":"https://github.com/bytespider/gravitas","last_synced_at":"2025-04-05T18:42:11.706Z","repository":{"id":136543698,"uuid":"3118424","full_name":"bytespider/Gravitas","owner":"bytespider","description":"Gravitar component for Appcelerator Titanium","archived":false,"fork":false,"pushed_at":"2012-01-06T18:04:19.000Z","size":384,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-11T15:59:36.123Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/bytespider.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-06T14:27:30.000Z","updated_at":"2021-01-28T16:47:36.000Z","dependencies_parsed_at":"2023-03-11T23:45:33.119Z","dependency_job_id":null,"html_url":"https://github.com/bytespider/Gravitas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytespider%2FGravitas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytespider%2FGravitas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytespider%2FGravitas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytespider%2FGravitas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bytespider","download_url":"https://codeload.github.com/bytespider/Gravitas/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247385457,"owners_count":20930594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-10-31T10:11:31.056Z","updated_at":"2025-04-05T18:42:11.681Z","avatar_url":"https://github.com/bytespider.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gravitas\nGravitas is a Gravitar component for Appcelerator Titanium. Simple and easy way \nto load the Gravitar associated with an email address.\n\nReleased under the MIT. Please see licence in the project root folder for more\ninformation.\n\n##Usage\n\n\tvar Gravitas = require(\"modules/gravatar\");\n\n\tvar win = Ti.UI.createWindow();\n\tvar image = Gravitas.createGravatar({\n\t\temail: \"rob@bytespider.eu\",\n\t\tdefaultStyle: Gravitas.GRAVITAR_DEFAULT_RETRO,\n\t\tsize: 256,\n\t\trating: Gravitas.GRAVITAR_RATING_PG\n\t});\n\n\twin.add(image);\n\twin.open();\n\n##Methods\n###createGravatar\n\noptions\n\n* email - [`string`] the email address of the user\n* defaultStyle - [`string`] the style of defeault images when the user email doesn't exist (_default images styles constant_)\n* rating - [`string`] the rating of the image to display (_image ratings constant_)\n* size - [`int`] size of the image to load\n* ext - [`bool`] whether to include the `.jpg` extention (not usually needed)\n* defaultImage - [`string`] url or path to the default image\n\n###Constants\n\t// Default image styles\n    Gravitas.DEFAULT_STYLE_404 \t\t\t// returns 404 response\n\tGravitas.DEFAULT_STYLE_OUTLINE \t\t// portrait outline\n\tGravitas.DEFAULT_STYLE_GEOMETRIC \t// geometric image (default)\n\tGravitas.DEFAULT_STYLE_MONSTER \t\t// monsters\n\tGravitas.DEFAULT_STYLE_FACES \t\t// cartoon faces\n\tGravitas.DEFAULT_STYLE_RETRO \t\t// 8bit style image\n\tGravitas.DEFAULT_STYLE_CUSTOM \t\t// will use the image you supply in defaultImage\n\n\tGravitas.DEFAULT_STYLE_ROBOHASH \t// robohash.org generated default\n\n\t// Image ratings\n\tGravitas.RATING_G \t\t\t\t\t// Allow G rated images or better (default)\n\tGravitas.RATING_PG \t\t\t\t\t// Allow PG rated images or better\n\tGravitas.RATING_R \t\t\t\t\t// Allow R rated images or better\n\tGravitas.RATING_X \t\t\t\t\t// Allow X rated images or better\n\n\n## Authors\n\n  * Rob Griffiths (rob AT bytespider DOT eu) [@bytespider](https://twitter.com/bytespider)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytespider%2Fgravitas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytespider%2Fgravitas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytespider%2Fgravitas/lists"}