Catalog npm
PACKAGE EXPLORERView in registry

@0xadada/random-emoji

npm

random emoji function with zero dependencies

Versions collected3
Direct dependencies15From release 1.2.0
Last observed20 Oct, 22:39 UTC

README

Version 1.2.0 documentation

@0xadada/random-emoji

CircleCI Coveralls branch

random emoji function with zero dependencies

Benefits

  • zero dependencies
  • doesn't define a range of emoji, just uses math

Usage

$ yarn add @0xadada/random-emoji
$ npm run -s start
> 🙄
$ npm run -s start
> 😜
$ node
> const { default: random } = require('@0xadada/random-emoji');
> random()
'😁'
> let a = random();  // defaults to 'emoticons'
> let b = random('emoticons');
> let c = random('food');
> let d = random('animals');
> let e = random('expressions');
> console.log(a, b, c, d, e);
😍 🙄 🍗 🐥 🤢

Arguments

Invoked without arguments, the function will return an emoji character within the 'emoticons' range of unicode characters.

Range

random accepts an optional String argument. This string describes the characters within a subset of the unicode block that random will be limited to. Current options are:

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 3

Collected releases
VersionPublishedDirect dependenciesOpen version
1.2.024 Nov 201915
1.1.0Registry latest25 Oct 201910
1.0.06 Oct 20197

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
0xadada/random-emoji

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:39 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:f36ce338d270120e5816f2c05b01ca94bc407f6fc4d075b40af864f8b2128b3c