anonymous-animals-gen
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Welcome to anonymous👋

Install

npm install anonymous-animals-gen

How to use

  • generate
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

<img src={image} style={{background:'black'}}>
  • getImage
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.

Package Sidebar

Install

npm i anonymous-animals-gen

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

517 kB

Total Files

18

Last publish

Collaborators

  • xodltus