-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
92 changed files
with
2,111 additions
and
753 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
cjs/ | ||
coverage/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* Utility type that enforces there's at least one element in the array. | ||
*/ | ||
export type AtLeastOneElement<T> = [T, ...T[]]; | ||
/** | ||
* Default maximum value for `randomIntegers` and `randomFloats`. | ||
*/ | ||
export declare const DEFAULT_RANDOM_NUMBERS_MAX = 300; | ||
/** | ||
* Wordlist for `randomPhrase`. | ||
*/ | ||
export declare const WORDLIST: string[]; | ||
/** | ||
* The shape of the options passed to `randomIntegers` and `randomFloats`. | ||
* @since 1.1.1 | ||
*/ | ||
export interface RandomArraysOptions { | ||
max?: number; | ||
min?: number; | ||
} | ||
/** | ||
* An array containing all 26 English lowercase letters. | ||
*/ | ||
export declare const LOWERS: AtLeastOneElement<string>; | ||
/** | ||
* An array containing all 26 English uppercase letters. | ||
*/ | ||
export declare const UPPERS: AtLeastOneElement<string>; | ||
/** | ||
* An array containing all 52 English letters (uppercase and lowercase). | ||
*/ | ||
export declare const LETTERS: AtLeastOneElement<string>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
"use strict"; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
exports.__esModule = true; | ||
exports.LETTERS = exports.UPPERS = exports.LOWERS = exports.WORDLIST = exports.DEFAULT_RANDOM_NUMBERS_MAX = void 0; | ||
/** | ||
* Default maximum value for `randomIntegers` and `randomFloats`. | ||
*/ | ||
exports.DEFAULT_RANDOM_NUMBERS_MAX = 300; | ||
/** | ||
* Wordlist for `randomPhrase`. | ||
*/ | ||
exports.WORDLIST = [ | ||
'pizza', | ||
'garbage', | ||
'fog', | ||
'merge', | ||
'actor', | ||
'replace', | ||
'naive', | ||
'quiz', | ||
'huge', | ||
'ivory', | ||
'island', | ||
'road', | ||
'mercy', | ||
'swallow', | ||
'diary', | ||
'puppy', | ||
'burden', | ||
'track', | ||
'scissors', | ||
'club', | ||
'noodle', | ||
'reason', | ||
'garment', | ||
'baby', | ||
'wide', | ||
'uncover', | ||
'vital', | ||
'advance', | ||
'vacant', | ||
'loud', | ||
'cupboard', | ||
'green', | ||
'banner', | ||
'skate', | ||
'author', | ||
'damage', | ||
'man', | ||
'ordinary', | ||
'joke', | ||
'close', | ||
'person', | ||
'love', | ||
'artist', | ||
'trap', | ||
'shaft', | ||
'crack', | ||
'learn', | ||
'delay', | ||
'romance', | ||
'december', | ||
'share', | ||
'reason', | ||
'entry', | ||
'emotion', | ||
'ocean', | ||
'layer', | ||
'nature', | ||
'draft', | ||
'loop', | ||
'zone', | ||
'speak', | ||
'desert', | ||
'bubble', | ||
'common', | ||
]; | ||
/** | ||
* An array containing all 26 English lowercase letters. | ||
*/ | ||
exports.LOWERS = 'abcdefghijklmnopqrstuvwxyz'.split(''); | ||
/** | ||
* An array containing all 26 English uppercase letters. | ||
*/ | ||
exports.UPPERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split(''); | ||
/** | ||
* An array containing all 52 English letters (uppercase and lowercase). | ||
*/ | ||
exports.LETTERS = __spreadArray(__spreadArray([], exports.LOWERS, true), exports.UPPERS, true); |
Oops, something went wrong.