struct-fakerator 2.1.3 → 2.3.3
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 +30 -0
- package/biome.json +1 -1
- package/dist/index.d.mts +653 -3
- package/dist/index.d.ts +653 -3
- package/dist/index.js +1726 -5016
- package/dist/index.mjs +1711 -5010
- package/package.json +6 -6
- package/src/index.ts +1 -0
- package/src/utils/airline.ts +16 -0
- package/src/utils/animal.ts +64 -0
- package/src/utils/color.ts +49 -0
- package/src/utils/commerce.ts +40 -0
- package/src/utils/common.ts +4 -0
- package/src/utils/company.ts +46 -0
- package/src/utils/database.ts +24 -0
- package/src/utils/datatype.ts +7 -0
- package/src/utils/datetime.ts +47 -0
- package/src/utils/finance.ts +93 -0
- package/src/utils/index.ts +44 -0
- package/src/utils/lorem.ts +41 -0
- package/src/utils/number.ts +26 -0
- package/src/utils/person.ts +69 -0
- package/src/utils/phone.ts +10 -0
- package/src/utils/string.ts +45 -0
- package/src/utils/word.ts +42 -0
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# 假資料結構產生器
|
|
2
|
+
|
|
3
|
+
|
|
2
4
|
- [假資料結構產生器](#假資料結構產生器)
|
|
5
|
+
- [port to fakerjs](#port-to-fakerjs)
|
|
3
6
|
- [用途](#用途)
|
|
4
7
|
- [createValueGenerator](#createvaluegenerator)
|
|
5
8
|
- [createSelectionGenerator](#createselectiongenerator)
|
|
@@ -9,6 +12,33 @@
|
|
|
9
12
|
- [createBoundedSeriesGenerator](#createboundedseriesgenerator)
|
|
10
13
|
- [擴充](#擴充)
|
|
11
14
|
|
|
15
|
+
## port to fakerjs
|
|
16
|
+
|
|
17
|
+
- [X] Airline
|
|
18
|
+
- [X] Animal
|
|
19
|
+
- [X] Color
|
|
20
|
+
- [X] Commerce
|
|
21
|
+
- [X] Company
|
|
22
|
+
- [X] Database
|
|
23
|
+
- [X] Datatype
|
|
24
|
+
- [X] Date(Datetime)
|
|
25
|
+
- [X] Finance
|
|
26
|
+
- [ ] Food
|
|
27
|
+
- [ ] Git
|
|
28
|
+
- [ ] Hacker
|
|
29
|
+
- [ ] Image
|
|
30
|
+
- [ ] Internet
|
|
31
|
+
- [ ] Location
|
|
32
|
+
- [X] Lorem
|
|
33
|
+
- [ ] Music
|
|
34
|
+
- [X] Number
|
|
35
|
+
- [X] Person
|
|
36
|
+
- [X] Phone
|
|
37
|
+
- [ ] Science
|
|
38
|
+
- [X] String
|
|
39
|
+
- [ ] System
|
|
40
|
+
- [ ] Vehicle
|
|
41
|
+
|
|
12
42
|
## 用途
|
|
13
43
|
|
|
14
44
|
使用 faker js 時是單一純值不能產生結構,需要自己手動組合結構,此專案利用撰寫設定檔的方式來產生一個特定的假資料函數,減少手動組合結構的麻煩。
|
package/biome.json
CHANGED