deverything 0.0.2 → 0.1.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 +24 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
The promise:
|
|
6
6
|
|
|
7
|
-
- **
|
|
7
|
+
- **1 package**: say goodbye to installing lodash, faker, this and that and the other one.
|
|
8
8
|
- **0 dependencies**: keep it simple and lightweight.
|
|
9
9
|
- **Pick the best**: the code is minimal and uses the best current practices and performance.
|
|
10
10
|
- **Typescript**: use it, support it and export it.
|
|
@@ -14,20 +14,32 @@ Contributions always welcome!
|
|
|
14
14
|
|
|
15
15
|
### Validators
|
|
16
16
|
|
|
17
|
-
- `isBrowser`
|
|
18
|
-
- `isClient`
|
|
19
|
-
- `isEmpty`
|
|
20
|
-
- `isJsDate`
|
|
21
|
-
- `isObject`
|
|
22
|
-
- `isServer`
|
|
23
|
-
- `isStringDate`
|
|
17
|
+
- `isBrowser()`
|
|
18
|
+
- `isClient()`
|
|
19
|
+
- `isEmpty()`
|
|
20
|
+
- `isJsDate()`
|
|
21
|
+
- `isObject()`
|
|
22
|
+
- `isServer()`
|
|
23
|
+
- `isStringDate()`
|
|
24
24
|
|
|
25
25
|
### Helpers
|
|
26
26
|
|
|
27
|
-
- `parseDate`
|
|
27
|
+
- `parseDate(date: Date | string | number): Date`
|
|
28
28
|
|
|
29
29
|
### Random data generators
|
|
30
30
|
|
|
31
|
-
These functions are
|
|
32
|
-
|
|
33
|
-
- `
|
|
31
|
+
These functions are optimized for low entropy random data generation useful for Unit Testing, Storybook, Pass real validations, Reverse hacking, Penetration testing...
|
|
32
|
+
|
|
33
|
+
- `randomAddress(): { city: string, country: string, street: string, number: number, zip: string}`
|
|
34
|
+
- `randomArrayItem()`
|
|
35
|
+
- `randomBool()`
|
|
36
|
+
- `randomDate()`
|
|
37
|
+
- `randomFutureDate()`
|
|
38
|
+
- `randomPastDate()`
|
|
39
|
+
- `randomEmail()`
|
|
40
|
+
- `randomInt()`
|
|
41
|
+
- `randomName()`
|
|
42
|
+
- `randomFirstName()`
|
|
43
|
+
- `randomLastName()`
|
|
44
|
+
- `randomFullName()`
|
|
45
|
+
- `randomHandle()`
|