Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bukinoshita/tinyfaces

πŸ‘¦πŸΌπŸ‘¨πŸΎπŸ‘©πŸ» A JavaScript wrapper for TinyFaces API
https://github.com/bukinoshita/tinyfaces

api design face js nodejs sketch tinyfaces ui wrapper

Last synced: 18 days ago
JSON representation

πŸ‘¦πŸΌπŸ‘¨πŸΎπŸ‘©πŸ» A JavaScript wrapper for TinyFaces API

Awesome Lists containing this project

README

        

# tinyfaces [![Build Status](https://travis-ci.org/bukinoshita/tinyfaces.svg?branch=master)](https://travis-ci.org/bukinoshita/tinyfaces)

> A JavaScript wrapper for [TinyFaces](https://github.com/maximedegreve/TinyFaces) API

## Install

```bash
$ yarn add tinyfaces
```

## Usage

```js
const tinyfaces = require('tinyfaces')

tinyfaces().then(t => console.log(t))

/*
[{
avatars: [ [Object], ...],
avatars_origin: {
facebook_profile_link: FB_URL,
id: 862,
name: 'Jakk Sheer'
},
first_name: 'Jakk',
gender: 'male',
last_name: 'Sheer'
}, ...]
*/
```

## API

### tinyfaces([options])

Type: `object`

Returns a `promise`

#### options

##### gender

Type: `string`

Default: returns both genders

Options: `male` / `female`

Tinyface gender

##### minQuality

Type: `number`

Options: `1`, `2`, `3`, `4`, `5`, `6`

Tinyface avatar quality β€” 1: low / 6: high

## Rules

- You can’t use any of our content next to any adult or discrimating content.
- You should never use the real name of the person in the photo in your designs.
- Never use a photo for fake testimonals.
- This list of rules might grow in the future and should be checked regularly.

## License

MIT Β© [Bu Kinoshita](https://bukinoshita.io)