randex 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# randex
|
|
2
2
|
|
|
3
|
+
TypeScript library to random most common things like filename, username, email, name, full name, etc.
|
|
4
|
+
|
|
3
5
|
<a href="https://www.npmjs.com/package/randex">
|
|
4
6
|
<img src="https://nodei.co/npm/randex.png?mini=true">
|
|
5
7
|
</a>
|
|
6
8
|
|
|
7
|
-
TypeScript library for random thing like string, username, email, name, etc.
|
|
8
|
-
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
11
|
Installation:
|
|
@@ -30,7 +30,7 @@ Deeps:
|
|
|
30
30
|
|
|
31
31
|
## random
|
|
32
32
|
|
|
33
|
-
Basic function
|
|
33
|
+
Basic function to construct random things.
|
|
34
34
|
|
|
35
35
|
```ts
|
|
36
36
|
import { random } from "randex";
|
|
@@ -153,8 +153,8 @@ randomFileName(8, "xml");
|
|
|
153
153
|
Options:
|
|
154
154
|
| Name | Type| Description|
|
|
155
155
|
| ------------------------ | ---- |------------ |
|
|
156
|
-
|fileNameLength|[RandexLength](#randexlength) | Length of file name (not including extension). Default: [3,10]|
|
|
157
|
-
|extensionLength|[RandexLength](#randexlength) | Length of extension (not including file name) chars
|
|
156
|
+
|fileNameLength|[RandexLength](#randexlength) | Length of file name (not including extension). Default: [3,10] |
|
|
157
|
+
|extensionLength|[RandexLength](#randexlength) | Length of extension (not including file name) chars. Default: [2,5] |
|
|
158
158
|
|extension| `string`| File extension. |
|
|
159
159
|
|
|
160
160
|
## randomUsername
|