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

https://github.com/ppeeou/anonymous-animals-gen

anonymous animals
https://github.com/ppeeou/anonymous-animals-gen

Last synced: 11 months ago
JSON representation

anonymous animals

Awesome Lists containing this project

README

          

Welcome to anonymousđź‘‹

# Install

```
npm install anonymous-animals-gen
```

# How to use

- generate

```js
import anonymous from 'anonymous-animals-gen'
const { name, image, animal } = anonymous.generate();
// name -> elastic giraffe
// image -> data:image/png;base64,...
// animal -> giraffe

const { name, image, animal } = anonymous.generate({ prefix: "Anonymous" });

// name -> Anonymous elastic giraffe
// image -> data:image/png;base64,...
// animal -> giraffe


```

- getImage

```js
import anonymous from 'anonymous-animals-gen'
const { animal } = anonymous.generate();
const image = anonymous.getImage(animal);

// image -> data:image/png;base64,...
```

## Test

```
npm run test
```

## License

The code is licensed under the MIT license while pictures belong to Google.