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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    11
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    11
  • 1.0.2
    1
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i anonymous-animals-gen

Weekly Downloads

8

Version

1.0.3

License

MIT

Unpacked Size

517 kB

Total Files

18

Last publish

Collaborators

  • xodltus