1.0.2 • Published 9 years ago
gravator v1.0.2
Install
$ npm install --save gravatorUsage
usernameof a gravatar user is alwaysfoo@example.com
'use strict';
const gravator = require('gravator');
gravator('username', 'options').then(res => {
console.log(res);
// {opts: 'data'}
});
gravator('foo', 'hash').then(res => {
console.log(res);
// {opts: 'foo'}
})API
gravator(username, options)
username
Type: string
options
Type: string
Options:
id
Example
gravator('matt', 'id').then(res => {
console.log(res);
// // {opts: '5'}
});hashrequestHashprofileUrlpreferredUsernamethumbnailUrlphotosnameimsdisplayNameaboutMecurrentLocationemailsaccountsurls
Related
gravator-cli: CLI Tool for Gravator.twifo: Get user information of a twitter user.
License
MIT © Rishi Giri