Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.
/ random Public archive

A drop-in replacement for the "random" Meteor package

License

Notifications You must be signed in to change notification settings

reactioncommerce/random

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository is deprecated

This code is now located in our monorepo here

Random

A drop-in replacement for the Meteor random package. Unlike the Meteor package, you can use this either with or without Meteor.

Installation

npm i --save @reactioncommerce/random

Usage

import Random from "@reactioncommerce/random";

const id = Random.id();

API

See Meteor package documentation

Other similar packages

The meteor-random NPM package ported Meteor's random package a few years back. This has the latest updates, modernized code, and tests.