1.0.2 • Published 2 years ago

@k04an/nigg-face v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

nigg-face

Photo parser for generated.photos. Only black people avaliable.

Говорите на русском?

Я вот тоже. Тогда почему бы вам не прочитать README не русском?

Why?

So, the main reasons of creating this project was that there's no free tools that allow you to get placeholder images of people, in particular black. Yeah generated.photos have native API, but it's not free and it requires api key. The last thing i want to do in the middle of development is to log in some website, find my api key, form url and then getting charged for that.

So with this package you can easily access around 30 or 50 images from generated.photos, with all their filters and those kinds of things.

Why black only?

Bruh

Usage

You can install this package with following command

npm i @k04an/nigg-face

Once it's done, you can import it in your project

const niggFace = require('@k04an/nigg-face')

The only function you will use is .get(). You can pass number as first argument to get certain amount of images and pass an object as second argument to apply filters.

Example:

const niggFace = require('@k04an/nigg-face')

niggFace.get(10, {
    sex: 'male'
})

The .get() function returns a Promise, so make sure to use .then() or async/await

Full list of filters

OptionPossible values
sexmale or female
facenatural or beautified
headPosefront, left or right
agechild, young, adult, or elderly
hairColorblack or brown
hairLengthshort, medium or long
emotionjoy or neutral