{"id":23201052,"url":"https://github.com/codedotjs/gravator","last_synced_at":"2025-04-05T09:26:17.388Z","repository":{"id":57253788,"uuid":"56359104","full_name":"CodeDotJS/gravator","owner":"CodeDotJS","description":":earth_asia: Get user information of a Gravatar user.","archived":false,"fork":false,"pushed_at":"2017-05-24T14:16:32.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T06:19:42.667Z","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/CodeDotJS.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":"2016-04-16T01:21:01.000Z","updated_at":"2023-09-08T17:09:17.000Z","dependencies_parsed_at":"2022-09-04T14:10:49.487Z","dependency_job_id":null,"html_url":"https://github.com/CodeDotJS/gravator","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/CodeDotJS%2Fgravator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fgravator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fgravator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fgravator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeDotJS","download_url":"https://codeload.github.com/CodeDotJS/gravator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247314511,"owners_count":20918852,"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-12-18T15:13:44.623Z","updated_at":"2025-04-05T09:26:17.365Z","avatar_url":"https://github.com/CodeDotJS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/CodeDotJS/gravator/master/media/gravator.png\" alt=\"GRAVATOR\" width=\"400\"\u003e\n\u003cbr\u003e\n\u003cimg src=\"https://travis-ci.org/CodeDotJS/gravator.svg?branch=master\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/code_style-XO-5ed9c7.svg\"\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\u003cb\u003eAn unofficial API for Gravatar.com mostly for scrapping user data.\u003c/b\u003e\u003c/p\u003e\n\n## Install\n\n```\n$ npm install --save gravator\n```\n\n## Usage\n\n- `username` of a gravatar user is always __`foo`__`@example.com`\n```js\n'use strict';\n\nconst gravator = require('gravator');\n\ngravator('username', 'options').then(res =\u003e {\n\tconsole.log(res);\n\t// {opts: 'data'}\n});\n\ngravator('foo', 'hash').then(res =\u003e {\n\tconsole.log(res);\n\t// {opts: 'foo'}\n})\n```\n\n## API\n\n### `gravator(username, options)`\n\n#### __`username`__\n\nType: `string`\n\n#### __`options`__\n\nType: `string`\n\nOptions:\n\n- `id`\n\n__`Example `__\n\n```js\ngravator('matt', 'id').then(res =\u003e {\n\tconsole.log(res);\n\t// // {opts: '5'}\n});\n```\n\n- `hash`\n\n- `requestHash`\n\n- `profileUrl`\n\n- `preferredUsername`\n\n- `thumbnailUrl`\n\n- `photos`\n\n- `name`\n\n- `ims`\n\n- `displayName`\n\n- `aboutMe`\n\n- `currentLocation`\n\n- `emails`\n\n- `accounts`\n\n- `urls`\n\n## Related\n\n- __[`gravator-cli`](https://github.com/CodeDotJS/gravator-cli)__ `: CLI Tool for Gravator.`\n\n- __[`twifo`](https://github.com/CodeDotJS/whatiz-cli)__ `: Get user information of a twitter user.`\n\n## License\n\nMIT \u0026copy; [Rishi Giri](http://rishigiri.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedotjs%2Fgravator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodedotjs%2Fgravator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedotjs%2Fgravator/lists"}