jinbi-utils 1.0.0-beta.1

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.
Files changed (72) hide show
  1. package/.babelrc +19 -0
  2. package/.cz-config.js +55 -0
  3. package/.dockerignore +3 -0
  4. package/.editorconfig +12 -0
  5. package/.eslintignore +8 -0
  6. package/.eslintrc.js +54 -0
  7. package/Dockerfile +3 -0
  8. package/README.md +160 -0
  9. package/api-extractor.json +15 -0
  10. package/commitlint.config.js +3 -0
  11. package/dist/index.esm.js +1277 -0
  12. package/dist/index.esm.min.js +15 -0
  13. package/dist/index.umd.js +1348 -0
  14. package/dist/index.umd.min.js +16 -0
  15. package/docs/assets/images/icons.png +0 -0
  16. package/docs/assets/images/icons@2x.png +0 -0
  17. package/docs/assets/images/widgets.png +0 -0
  18. package/docs/assets/images/widgets@2x.png +0 -0
  19. package/docs/assets/js/main.js +1 -0
  20. package/docs/assets/js/search.json +1 -0
  21. package/docs/globals.html +144 -0
  22. package/docs/index.html +147 -0
  23. package/docs/interfaces/file.compressimgqualitycallback.html +212 -0
  24. package/docs/interfaces/file.compressimgscalecallback.html +206 -0
  25. package/docs/interfaces/file.exportbyblobparams.html +294 -0
  26. package/docs/interfaces/file.filesizeobject.html +227 -0
  27. package/docs/interfaces/file.genexportbyblobparams.html +237 -0
  28. package/docs/modules/common.html +188 -0
  29. package/docs/modules/date.html +364 -0
  30. package/docs/modules/file.html +452 -0
  31. package/docs/modules/number.html +356 -0
  32. package/docs/modules/object.html +245 -0
  33. package/docs/modules/print.html +183 -0
  34. package/docs/modules/string.html +352 -0
  35. package/docs/modules/validate.html +389 -0
  36. package/jest.config.js +15 -0
  37. package/package.json +76 -0
  38. package/rollup.config.js +65 -0
  39. package/src/common/index.ts +323 -0
  40. package/src/constant/common.constant.ts +13 -0
  41. package/src/date/index.ts +143 -0
  42. package/src/file/index.ts +296 -0
  43. package/src/http/http.ts +79 -0
  44. package/src/http/httpEnums.ts +61 -0
  45. package/src/index.ts +10 -0
  46. package/src/number/index.ts +190 -0
  47. package/src/object/index.ts +54 -0
  48. package/src/print/index.ts +102 -0
  49. package/src/string/index.ts +111 -0
  50. package/src/validate/index.ts +78 -0
  51. package/src/wecom/wecom.ts +75 -0
  52. package/test/common/index.test.ts +19 -0
  53. package/test/date/index.test.ts +107 -0
  54. package/test/file/index.test.ts +104 -0
  55. package/test/number/index.test.ts +108 -0
  56. package/test/object/index.test.ts +20 -0
  57. package/test/string/index.test.ts +82 -0
  58. package/tsconfig.json +39 -0
  59. package/typedoc.json +9 -0
  60. package/types/common/index.d.ts +47 -0
  61. package/types/constant/common.constant.d.ts +12 -0
  62. package/types/date/index.d.ts +60 -0
  63. package/types/file/index.d.ts +96 -0
  64. package/types/http/http.d.ts +17 -0
  65. package/types/http/httpEnums.d.ts +53 -0
  66. package/types/index.d.ts +10 -0
  67. package/types/number/index.d.ts +62 -0
  68. package/types/object/index.d.ts +25 -0
  69. package/types/print/index.d.ts +11 -0
  70. package/types/string/index.d.ts +53 -0
  71. package/types/validate/index.d.ts +45 -0
  72. package/types/wecom/wecom.d.ts +3 -0
@@ -0,0 +1,183 @@
1
+ <!doctype html>
2
+ <html class="default no-js">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <title>Print | fe-utils</title>
7
+ <meta name="description" content="Documentation for fe-utils">
8
+ <meta name="viewport" content="width=device-width, initial-scale=1">
9
+ <link rel="stylesheet" href="../assets/css/main.css">
10
+ </head>
11
+ <body>
12
+ <header>
13
+ <div class="tsd-page-toolbar">
14
+ <div class="container">
15
+ <div class="table-wrap">
16
+ <div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
17
+ <div class="field">
18
+ <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
19
+ <input id="tsd-search-field" type="text" />
20
+ </div>
21
+ <ul class="results">
22
+ <li class="state loading">Preparing search index...</li>
23
+ <li class="state failure">The search index is not available</li>
24
+ </ul>
25
+ <a href="../index.html" class="title">fe-utils</a>
26
+ </div>
27
+ <div class="table-cell" id="tsd-widgets">
28
+ <div id="tsd-filter">
29
+ <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
30
+ <div class="tsd-filter-group">
31
+ <div class="tsd-select" id="tsd-filter-visibility">
32
+ <span class="tsd-select-label">All</span>
33
+ <ul class="tsd-select-list">
34
+ <li data-value="public">Public</li>
35
+ <li data-value="protected">Public/Protected</li>
36
+ <li data-value="private" class="selected">All</li>
37
+ </ul>
38
+ </div>
39
+ <input type="checkbox" id="tsd-filter-inherited" checked />
40
+ <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
41
+ <input type="checkbox" id="tsd-filter-externals" checked />
42
+ <label class="tsd-widget" for="tsd-filter-externals">Externals</label>
43
+ </div>
44
+ </div>
45
+ <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ <div class="tsd-page-title">
51
+ <div class="container">
52
+ <ul class="tsd-breadcrumb">
53
+ <li>
54
+ <a href="../globals.html">Globals</a>
55
+ </li>
56
+ <li>
57
+ <a href="print.html">Print</a>
58
+ </li>
59
+ </ul>
60
+ <h1>Module Print</h1>
61
+ </div>
62
+ </div>
63
+ </header>
64
+ <div class="container container-main">
65
+ <div class="row">
66
+ <div class="col-8 col-content">
67
+ <section class="tsd-panel tsd-comment">
68
+ <div class="tsd-comment tsd-typography">
69
+ <div class="lead">
70
+ <p>print处理相关</p>
71
+ </div>
72
+ </div>
73
+ </section>
74
+ <section class="tsd-panel-group tsd-index-group">
75
+ <h2>Index</h2>
76
+ <section class="tsd-panel tsd-index-panel">
77
+ <div class="tsd-index-content">
78
+ <section class="tsd-index-section ">
79
+ <h3>Functions</h3>
80
+ <ul class="tsd-index-list">
81
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="print.html#printhtml" class="tsd-kind-icon">print<wbr>Html</a></li>
82
+ </ul>
83
+ </section>
84
+ </div>
85
+ </section>
86
+ </section>
87
+ <section class="tsd-panel-group tsd-member-group ">
88
+ <h2>Functions</h2>
89
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
90
+ <a name="printhtml" class="tsd-anchor"></a>
91
+ <h3>print<wbr>Html</h3>
92
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
93
+ <li class="tsd-signature tsd-kind-icon">print<wbr>Html<span class="tsd-signature-symbol">(</span>html<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
94
+ </ul>
95
+ <ul class="tsd-descriptions">
96
+ <li class="tsd-description">
97
+ <aside class="tsd-sources">
98
+ <ul>
99
+ <li>Defined in src/print/index.ts:90</li>
100
+ </ul>
101
+ </aside>
102
+ <div class="tsd-comment tsd-typography">
103
+ <div class="lead">
104
+ <p>打印指定 HTML</p>
105
+ </div>
106
+ </div>
107
+ <h4 class="tsd-parameters-title">Parameters</h4>
108
+ <ul class="tsd-parameters">
109
+ <li>
110
+ <h5>html: <span class="tsd-signature-type">any</span></h5>
111
+ <div class="tsd-comment tsd-typography">
112
+ </div>
113
+ </li>
114
+ </ul>
115
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
116
+ </li>
117
+ </ul>
118
+ </section>
119
+ </section>
120
+ </div>
121
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
122
+ <nav class="tsd-navigation primary">
123
+ <ul>
124
+ <li class="globals ">
125
+ <a href="../globals.html"><em>Globals</em></a>
126
+ </li>
127
+ <li class=" tsd-kind-module">
128
+ <a href="common.html">Common</a>
129
+ </li>
130
+ <li class=" tsd-kind-module">
131
+ <a href="date.html">Date</a>
132
+ </li>
133
+ <li class=" tsd-kind-module">
134
+ <a href="file.html">File</a>
135
+ </li>
136
+ <li class=" tsd-kind-module">
137
+ <a href="number.html">Number</a>
138
+ </li>
139
+ <li class=" tsd-kind-module">
140
+ <a href="object.html">Object</a>
141
+ </li>
142
+ <li class="current tsd-kind-module">
143
+ <a href="print.html">Print</a>
144
+ </li>
145
+ <li class=" tsd-kind-module">
146
+ <a href="string.html">String</a>
147
+ </li>
148
+ <li class=" tsd-kind-module">
149
+ <a href="validate.html">Validate</a>
150
+ </li>
151
+ </ul>
152
+ </nav>
153
+ <nav class="tsd-navigation secondary menu-sticky">
154
+ <ul class="before-current">
155
+ <li class=" tsd-kind-function tsd-parent-kind-module">
156
+ <a href="print.html#printhtml" class="tsd-kind-icon">print<wbr>Html</a>
157
+ </li>
158
+ </ul>
159
+ </nav>
160
+ </div>
161
+ </div>
162
+ </div>
163
+ <footer class="with-border-bottom">
164
+ <div class="container">
165
+ <h2>Legend</h2>
166
+ <div class="tsd-legend-group">
167
+ <ul class="tsd-legend">
168
+ <li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
169
+ <li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
170
+ </ul>
171
+ <ul class="tsd-legend">
172
+ <li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
173
+ </ul>
174
+ </div>
175
+ </div>
176
+ </footer>
177
+ <div class="container tsd-generator">
178
+ <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
179
+ </div>
180
+ <div class="overlay"></div>
181
+ <script src="../assets/js/main.js"></script>
182
+ </body>
183
+ </html>
@@ -0,0 +1,352 @@
1
+ <!doctype html>
2
+ <html class="default no-js">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <title>String | fe-utils</title>
7
+ <meta name="description" content="Documentation for fe-utils">
8
+ <meta name="viewport" content="width=device-width, initial-scale=1">
9
+ <link rel="stylesheet" href="../assets/css/main.css">
10
+ </head>
11
+ <body>
12
+ <header>
13
+ <div class="tsd-page-toolbar">
14
+ <div class="container">
15
+ <div class="table-wrap">
16
+ <div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
17
+ <div class="field">
18
+ <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
19
+ <input id="tsd-search-field" type="text" />
20
+ </div>
21
+ <ul class="results">
22
+ <li class="state loading">Preparing search index...</li>
23
+ <li class="state failure">The search index is not available</li>
24
+ </ul>
25
+ <a href="../index.html" class="title">fe-utils</a>
26
+ </div>
27
+ <div class="table-cell" id="tsd-widgets">
28
+ <div id="tsd-filter">
29
+ <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
30
+ <div class="tsd-filter-group">
31
+ <div class="tsd-select" id="tsd-filter-visibility">
32
+ <span class="tsd-select-label">All</span>
33
+ <ul class="tsd-select-list">
34
+ <li data-value="public">Public</li>
35
+ <li data-value="protected">Public/Protected</li>
36
+ <li data-value="private" class="selected">All</li>
37
+ </ul>
38
+ </div>
39
+ <input type="checkbox" id="tsd-filter-inherited" checked />
40
+ <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
41
+ <input type="checkbox" id="tsd-filter-externals" checked />
42
+ <label class="tsd-widget" for="tsd-filter-externals">Externals</label>
43
+ </div>
44
+ </div>
45
+ <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ <div class="tsd-page-title">
51
+ <div class="container">
52
+ <ul class="tsd-breadcrumb">
53
+ <li>
54
+ <a href="../globals.html">Globals</a>
55
+ </li>
56
+ <li>
57
+ <a href="string.html">String</a>
58
+ </li>
59
+ </ul>
60
+ <h1>Module String</h1>
61
+ </div>
62
+ </div>
63
+ </header>
64
+ <div class="container container-main">
65
+ <div class="row">
66
+ <div class="col-8 col-content">
67
+ <section class="tsd-panel tsd-comment">
68
+ <div class="tsd-comment tsd-typography">
69
+ <div class="lead">
70
+ <p>string处理相关</p>
71
+ </div>
72
+ </div>
73
+ </section>
74
+ <section class="tsd-panel-group tsd-index-group">
75
+ <h2>Index</h2>
76
+ <section class="tsd-panel tsd-index-panel">
77
+ <div class="tsd-index-content">
78
+ <section class="tsd-index-section ">
79
+ <h3>Functions</h3>
80
+ <ul class="tsd-index-list">
81
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="string.html#formatbank" class="tsd-kind-icon">format<wbr>Bank</a></li>
82
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="string.html#formatemptyvalue" class="tsd-kind-icon">format<wbr>Empty<wbr>Value</a></li>
83
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="string.html#formatphone" class="tsd-kind-icon">format<wbr>Phone</a></li>
84
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="string.html#formatphonehide" class="tsd-kind-icon">format<wbr>Phone<wbr>Hide</a></li>
85
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="string.html#generateenglishletters" class="tsd-kind-icon">generate<wbr>English<wbr>Letters</a></li>
86
+ </ul>
87
+ </section>
88
+ </div>
89
+ </section>
90
+ </section>
91
+ <section class="tsd-panel-group tsd-member-group ">
92
+ <h2>Functions</h2>
93
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
94
+ <a name="formatbank" class="tsd-anchor"></a>
95
+ <h3>format<wbr>Bank</h3>
96
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
97
+ <li class="tsd-signature tsd-kind-icon">format<wbr>Bank<span class="tsd-signature-symbol">(</span>val<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span>, defaultValue<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
98
+ </ul>
99
+ <ul class="tsd-descriptions">
100
+ <li class="tsd-description">
101
+ <aside class="tsd-sources">
102
+ <ul>
103
+ <li>Defined in src/string/index.ts:79</li>
104
+ </ul>
105
+ </aside>
106
+ <div class="tsd-comment tsd-typography">
107
+ <div class="lead">
108
+ <p>格式化银行卡 (4位一空格)</p>
109
+ <a href="#使用说明" id="使用说明" style="color: inherit; text-decoration: none;">
110
+ <h4>使用说明</h4>
111
+ </a>
112
+ <pre><code>formatBank(&#x27;<span class="hljs-number">62823568628235</span><span class="hljs-number">6812</span>3&#x27;) =&gt; &#x27;<span class="hljs-number">6282</span> <span class="hljs-number">3568</span> <span class="hljs-number">6282</span> <span class="hljs-number">3568</span> 123&#x27;
113
+ formatBank(&#x27;&#x27;, &#x27;-&#x27;) =&gt; &#x27;-&#x27;</code></pre>
114
+ </div>
115
+ </div>
116
+ <h4 class="tsd-parameters-title">Parameters</h4>
117
+ <ul class="tsd-parameters">
118
+ <li>
119
+ <h5>val: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></h5>
120
+ <div class="tsd-comment tsd-typography">
121
+ <p>银行卡号</p>
122
+ </div>
123
+ </li>
124
+ <li>
125
+ <h5><span class="tsd-flag ts-flagDefault value">Default value</span> defaultValue: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &quot;&quot;</span></h5>
126
+ <div class="tsd-comment tsd-typography">
127
+ <p>没有值放回的默认值</p>
128
+ </div>
129
+ </li>
130
+ </ul>
131
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
132
+ </li>
133
+ </ul>
134
+ </section>
135
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
136
+ <a name="formatemptyvalue" class="tsd-anchor"></a>
137
+ <h3>format<wbr>Empty<wbr>Value</h3>
138
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
139
+ <li class="tsd-signature tsd-kind-icon">format<wbr>Empty<wbr>Value<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, defaultValue<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
140
+ </ul>
141
+ <ul class="tsd-descriptions">
142
+ <li class="tsd-description">
143
+ <aside class="tsd-sources">
144
+ <ul>
145
+ <li>Defined in src/string/index.ts:12</li>
146
+ </ul>
147
+ </aside>
148
+ <div class="tsd-comment tsd-typography">
149
+ <div class="lead">
150
+ <p>空值处理</p>
151
+ </div>
152
+ </div>
153
+ <h4 class="tsd-parameters-title">Parameters</h4>
154
+ <ul class="tsd-parameters">
155
+ <li>
156
+ <h5>value: <span class="tsd-signature-type">any</span></h5>
157
+ </li>
158
+ <li>
159
+ <h5><span class="tsd-flag ts-flagDefault value">Default value</span> defaultValue: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &quot;-&quot;</span></h5>
160
+ </li>
161
+ </ul>
162
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
163
+ </li>
164
+ </ul>
165
+ </section>
166
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
167
+ <a name="formatphone" class="tsd-anchor"></a>
168
+ <h3>format<wbr>Phone</h3>
169
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
170
+ <li class="tsd-signature tsd-kind-icon">format<wbr>Phone<span class="tsd-signature-symbol">(</span>phone<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span>, separator<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, defaultValue<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></li>
171
+ </ul>
172
+ <ul class="tsd-descriptions">
173
+ <li class="tsd-description">
174
+ <aside class="tsd-sources">
175
+ <ul>
176
+ <li>Defined in src/string/index.ts:29</li>
177
+ </ul>
178
+ </aside>
179
+ <div class="tsd-comment tsd-typography">
180
+ <div class="lead">
181
+ <p>格式化手机</p>
182
+ <a href="#使用说明" id="使用说明" style="color: inherit; text-decoration: none;">
183
+ <h4>使用说明</h4>
184
+ </a>
185
+ <pre><code><span class="hljs-function"><span class="hljs-title">formatPhone</span><span class="hljs-params">(<span class="hljs-string">&#x27;18211572781&#x27;</span>)</span></span> =&gt; <span class="hljs-string">&#x27;182 1157 2781&#x27;</span>
186
+ <span class="hljs-function"><span class="hljs-title">formatPhone</span><span class="hljs-params">(<span class="hljs-string">&#x27;18211572781&#x27;</span>, <span class="hljs-string">&#x27;-&#x27;</span>)</span></span> =&gt; <span class="hljs-string">&#x27;182-1157-2781&#x27;</span></code></pre>
187
+ </div>
188
+ </div>
189
+ <h4 class="tsd-parameters-title">Parameters</h4>
190
+ <ul class="tsd-parameters">
191
+ <li>
192
+ <h5>phone: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></h5>
193
+ <div class="tsd-comment tsd-typography">
194
+ <p>手机号</p>
195
+ </div>
196
+ </li>
197
+ <li>
198
+ <h5><span class="tsd-flag ts-flagDefault value">Default value</span> separator: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &quot; &quot;</span></h5>
199
+ </li>
200
+ <li>
201
+ <h5><span class="tsd-flag ts-flagDefault value">Default value</span> defaultValue: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &quot;-&quot;</span></h5>
202
+ </li>
203
+ </ul>
204
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></h4>
205
+ </li>
206
+ </ul>
207
+ </section>
208
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
209
+ <a name="formatphonehide" class="tsd-anchor"></a>
210
+ <h3>format<wbr>Phone<wbr>Hide</h3>
211
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
212
+ <li class="tsd-signature tsd-kind-icon">format<wbr>Phone<wbr>Hide<span class="tsd-signature-symbol">(</span>phone<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span>, defaultValue<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></li>
213
+ </ul>
214
+ <ul class="tsd-descriptions">
215
+ <li class="tsd-description">
216
+ <aside class="tsd-sources">
217
+ <ul>
218
+ <li>Defined in src/string/index.ts:58</li>
219
+ </ul>
220
+ </aside>
221
+ <div class="tsd-comment tsd-typography">
222
+ <div class="lead">
223
+ <p>隐藏手机号</p>
224
+ <a href="#使用说明" id="使用说明" style="color: inherit; text-decoration: none;">
225
+ <h4>使用说明</h4>
226
+ </a>
227
+ <pre><code><span class="hljs-function"><span class="hljs-title">formatPhoneHide</span><span class="hljs-params">(<span class="hljs-string">&#x27;18211572781&#x27;</span>)</span></span> =&gt; <span class="hljs-string">&#x27;182****2781&#x27;</span>
228
+ <span class="hljs-function"><span class="hljs-title">formatPhoneHide</span><span class="hljs-params">(<span class="hljs-string">&#x27;&#x27;</span>, <span class="hljs-string">&#x27;-&#x27;</span>)</span></span> =&gt; <span class="hljs-string">&#x27;-&#x27;</span></code></pre>
229
+ </div>
230
+ </div>
231
+ <h4 class="tsd-parameters-title">Parameters</h4>
232
+ <ul class="tsd-parameters">
233
+ <li>
234
+ <h5>phone: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></h5>
235
+ <div class="tsd-comment tsd-typography">
236
+ <p>手机号</p>
237
+ </div>
238
+ </li>
239
+ <li>
240
+ <h5><span class="tsd-flag ts-flagDefault value">Default value</span> defaultValue: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &quot;&quot;</span></h5>
241
+ <div class="tsd-comment tsd-typography">
242
+ <p>没有值放回的默认值</p>
243
+ </div>
244
+ </li>
245
+ </ul>
246
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></h4>
247
+ </li>
248
+ </ul>
249
+ </section>
250
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
251
+ <a name="generateenglishletters" class="tsd-anchor"></a>
252
+ <h3>generate<wbr>English<wbr>Letters</h3>
253
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
254
+ <li class="tsd-signature tsd-kind-icon">generate<wbr>English<wbr>Letters<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></li>
255
+ </ul>
256
+ <ul class="tsd-descriptions">
257
+ <li class="tsd-description">
258
+ <aside class="tsd-sources">
259
+ <ul>
260
+ <li>Defined in src/string/index.ts:93</li>
261
+ </ul>
262
+ </aside>
263
+ <div class="tsd-comment tsd-typography">
264
+ <div class="lead">
265
+ <p>生成26个字母列表</p>
266
+ <a href="#使用说明" id="使用说明" style="color: inherit; text-decoration: none;">
267
+ <h4>使用说明</h4>
268
+ </a>
269
+ <pre><code> generateEnglishLetters() =&gt; [<span class="hljs-string">&#x27;A&#x27;</span>, ..., <span class="hljs-string">&#x27;Z&#x27;</span>];</code></pre>
270
+ </div>
271
+ </div>
272
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h4>
273
+ </li>
274
+ </ul>
275
+ </section>
276
+ </section>
277
+ </div>
278
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
279
+ <nav class="tsd-navigation primary">
280
+ <ul>
281
+ <li class="globals ">
282
+ <a href="../globals.html"><em>Globals</em></a>
283
+ </li>
284
+ <li class=" tsd-kind-module">
285
+ <a href="common.html">Common</a>
286
+ </li>
287
+ <li class=" tsd-kind-module">
288
+ <a href="date.html">Date</a>
289
+ </li>
290
+ <li class=" tsd-kind-module">
291
+ <a href="file.html">File</a>
292
+ </li>
293
+ <li class=" tsd-kind-module">
294
+ <a href="number.html">Number</a>
295
+ </li>
296
+ <li class=" tsd-kind-module">
297
+ <a href="object.html">Object</a>
298
+ </li>
299
+ <li class=" tsd-kind-module">
300
+ <a href="print.html">Print</a>
301
+ </li>
302
+ <li class="current tsd-kind-module">
303
+ <a href="string.html">String</a>
304
+ </li>
305
+ <li class=" tsd-kind-module">
306
+ <a href="validate.html">Validate</a>
307
+ </li>
308
+ </ul>
309
+ </nav>
310
+ <nav class="tsd-navigation secondary menu-sticky">
311
+ <ul class="before-current">
312
+ <li class=" tsd-kind-function tsd-parent-kind-module">
313
+ <a href="string.html#formatbank" class="tsd-kind-icon">format<wbr>Bank</a>
314
+ </li>
315
+ <li class=" tsd-kind-function tsd-parent-kind-module">
316
+ <a href="string.html#formatemptyvalue" class="tsd-kind-icon">format<wbr>Empty<wbr>Value</a>
317
+ </li>
318
+ <li class=" tsd-kind-function tsd-parent-kind-module">
319
+ <a href="string.html#formatphone" class="tsd-kind-icon">format<wbr>Phone</a>
320
+ </li>
321
+ <li class=" tsd-kind-function tsd-parent-kind-module">
322
+ <a href="string.html#formatphonehide" class="tsd-kind-icon">format<wbr>Phone<wbr>Hide</a>
323
+ </li>
324
+ <li class=" tsd-kind-function tsd-parent-kind-module">
325
+ <a href="string.html#generateenglishletters" class="tsd-kind-icon">generate<wbr>English<wbr>Letters</a>
326
+ </li>
327
+ </ul>
328
+ </nav>
329
+ </div>
330
+ </div>
331
+ </div>
332
+ <footer class="with-border-bottom">
333
+ <div class="container">
334
+ <h2>Legend</h2>
335
+ <div class="tsd-legend-group">
336
+ <ul class="tsd-legend">
337
+ <li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
338
+ <li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
339
+ </ul>
340
+ <ul class="tsd-legend">
341
+ <li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
342
+ </ul>
343
+ </div>
344
+ </div>
345
+ </footer>
346
+ <div class="container tsd-generator">
347
+ <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
348
+ </div>
349
+ <div class="overlay"></div>
350
+ <script src="../assets/js/main.js"></script>
351
+ </body>
352
+ </html>