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
- Host: GitHub
- URL: https://github.com/ppeeou/anonymous-animals-gen
- Owner: ppeeou
- License: mit
- Created: 2021-02-06T13:04:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-07T07:45:47.000Z (over 5 years ago)
- Last Synced: 2024-04-27T01:03:32.657Z (about 2 years ago)
- Language: JavaScript
- Homepage: https://ppeeou.github.io/anonymous-animals-gen/
- Size: 446 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.