deploy.sh 1.0.0 → 3.0.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.
Files changed (161) hide show
  1. package/.claude/settings.local.json +36 -0
  2. package/.github/ISSUE_TEMPLATE/bug_report.yml +105 -0
  3. package/.github/ISSUE_TEMPLATE/config.yml +5 -0
  4. package/.github/ISSUE_TEMPLATE/feature_request.yml +56 -0
  5. package/.github/workflows/ci.yml +29 -0
  6. package/.github/workflows/pages.yml +48 -0
  7. package/.oxfmtrc.json +7 -0
  8. package/.oxlintrc.json +11 -0
  9. package/LICENSE +183 -183
  10. package/README.md +99 -11
  11. package/app/actions/deployments.ts +82 -0
  12. package/app/actions/metrics.ts +13 -0
  13. package/app/root.tsx +60 -0
  14. package/app/routes/dashboard/detail/history.tsx +73 -0
  15. package/app/routes/dashboard/detail/layout.tsx +125 -0
  16. package/app/routes/dashboard/detail/logs.tsx +85 -0
  17. package/app/routes/dashboard/detail/overview.tsx +119 -0
  18. package/app/routes/dashboard/detail/requests.tsx +163 -0
  19. package/app/routes/dashboard/detail/resources.tsx +268 -0
  20. package/app/routes/dashboard/detail/shared.tsx +59 -0
  21. package/app/routes/dashboard/index.tsx +360 -0
  22. package/app/routes/dashboard/layout.tsx +30 -0
  23. package/app/routes/docs/architecture.tsx +155 -0
  24. package/app/routes/docs/cli.tsx +122 -0
  25. package/app/routes/docs/deploying.tsx +105 -0
  26. package/app/routes/docs/index.tsx +104 -0
  27. package/app/routes/docs/layout.tsx +58 -0
  28. package/app/routes/home.tsx +134 -0
  29. package/app/routes/root.client.tsx +46 -0
  30. package/app/routes.ts +21 -0
  31. package/app/styles.css +15 -0
  32. package/app/theme.css +134 -0
  33. package/bin/deploy.js +360 -110
  34. package/docs-site/404.html +33 -0
  35. package/docs-site/home.tsx +130 -0
  36. package/docs-site/index.html +35 -0
  37. package/docs-site/layout.tsx +57 -0
  38. package/docs-site/main.tsx +41 -0
  39. package/docs-site/shell.tsx +34 -0
  40. package/docs-site/styles.css +4 -0
  41. package/drizzle.config.js +8 -0
  42. package/examples/docker/Dockerfile +5 -0
  43. package/examples/docker/server.js +18 -0
  44. package/examples/node/package.json +7 -0
  45. package/examples/node/pnpm-lock.yaml +9 -0
  46. package/examples/node/server.js +12 -0
  47. package/examples/static/index.html +48 -0
  48. package/package.json +41 -55
  49. package/public/favicon.ico +0 -0
  50. package/react-router-vite/entry.browser.tsx +49 -0
  51. package/react-router-vite/entry.rsc.single.tsx +7 -0
  52. package/react-router-vite/entry.rsc.tsx +36 -0
  53. package/react-router-vite/entry.ssr.tsx +29 -0
  54. package/react-router-vite/plugin.ts +114 -0
  55. package/react-router-vite/types.d.ts +11 -0
  56. package/react-router.config.ts +5 -0
  57. package/server/api.test.ts +344 -0
  58. package/server/api.ts +445 -0
  59. package/server/docker.ts +268 -0
  60. package/server/index.ts +17 -0
  61. package/server/metrics-collector.ts +29 -0
  62. package/server/schema.ts +56 -0
  63. package/server/store.test.ts +278 -0
  64. package/server/store.ts +398 -0
  65. package/tsconfig.json +21 -0
  66. package/vite.config.ts +45 -0
  67. package/vite.docs.config.ts +31 -0
  68. package/.eslintignore +0 -5
  69. package/.eslintrc +0 -23
  70. package/.travis.yml +0 -9
  71. package/.tryitout +0 -48
  72. package/CHANGELOG.md +0 -56
  73. package/bin/deploy-delete.js +0 -11
  74. package/bin/deploy-deploy.js +0 -31
  75. package/bin/deploy-list.js +0 -32
  76. package/bin/deploy-login.js +0 -39
  77. package/bin/deploy-logout.js +0 -12
  78. package/bin/deploy-logs.js +0 -19
  79. package/bin/deploy-open.js +0 -19
  80. package/bin/deploy-register.js +0 -40
  81. package/bin/deploy-server.js +0 -5
  82. package/bin/deploy-whoami.js +0 -12
  83. package/docs/code/CLI.html +0 -2901
  84. package/docs/code/Deployment.html +0 -2469
  85. package/docs/code/Request.html +0 -906
  86. package/docs/code/User.html +0 -1219
  87. package/docs/code/classifier.js.html +0 -121
  88. package/docs/code/deploy.js.html +0 -122
  89. package/docs/code/fonts/OpenSans-Bold-webfont.eot +0 -0
  90. package/docs/code/fonts/OpenSans-Bold-webfont.svg +0 -1830
  91. package/docs/code/fonts/OpenSans-Bold-webfont.woff +0 -0
  92. package/docs/code/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  93. package/docs/code/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
  94. package/docs/code/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  95. package/docs/code/fonts/OpenSans-Italic-webfont.eot +0 -0
  96. package/docs/code/fonts/OpenSans-Italic-webfont.svg +0 -1830
  97. package/docs/code/fonts/OpenSans-Italic-webfont.woff +0 -0
  98. package/docs/code/fonts/OpenSans-Light-webfont.eot +0 -0
  99. package/docs/code/fonts/OpenSans-Light-webfont.svg +0 -1831
  100. package/docs/code/fonts/OpenSans-Light-webfont.woff +0 -0
  101. package/docs/code/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  102. package/docs/code/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
  103. package/docs/code/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  104. package/docs/code/fonts/OpenSans-Regular-webfont.eot +0 -0
  105. package/docs/code/fonts/OpenSans-Regular-webfont.svg +0 -1831
  106. package/docs/code/fonts/OpenSans-Regular-webfont.woff +0 -0
  107. package/docs/code/fonts/OpenSans-Semibold-webfont.eot +0 -0
  108. package/docs/code/fonts/OpenSans-Semibold-webfont.svg +0 -1830
  109. package/docs/code/fonts/OpenSans-Semibold-webfont.ttf +0 -0
  110. package/docs/code/fonts/OpenSans-Semibold-webfont.woff +0 -0
  111. package/docs/code/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
  112. package/docs/code/fonts/OpenSans-SemiboldItalic-webfont.svg +0 -1830
  113. package/docs/code/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  114. package/docs/code/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  115. package/docs/code/helpers_cli.js.html +0 -315
  116. package/docs/code/helpers_util.js.html +0 -194
  117. package/docs/code/index.html +0 -66
  118. package/docs/code/models_deployment.js.html +0 -515
  119. package/docs/code/models_request.js.html +0 -158
  120. package/docs/code/models_user.js.html +0 -198
  121. package/docs/code/module-lib_classifier.html +0 -246
  122. package/docs/code/module-lib_deploy.html +0 -350
  123. package/docs/code/module-lib_helpers_util.html +0 -707
  124. package/docs/code/scripts/linenumber.js +0 -25
  125. package/docs/code/scripts/prettify/Apache-License-2.0.txt +0 -202
  126. package/docs/code/scripts/prettify/lang-css.js +0 -2
  127. package/docs/code/scripts/prettify/prettify.js +0 -28
  128. package/docs/code/styles/jsdoc-default.css +0 -692
  129. package/docs/code/styles/prettify-jsdoc.css +0 -111
  130. package/docs/code/styles/prettify-tomorrow.css +0 -132
  131. package/docs/example.gif +0 -0
  132. package/docs/example.mov +0 -0
  133. package/docs/index.html +0 -4463
  134. package/docs/logo.png +0 -0
  135. package/docs/logo.pxm +0 -0
  136. package/docs/logo@2x.png +0 -0
  137. package/docs/main.css +0 -162
  138. package/docs/main.js +0 -53
  139. package/index.js +0 -55
  140. package/jsdoc.json +0 -27
  141. package/lib/classifier.js +0 -61
  142. package/lib/deploy.js +0 -62
  143. package/lib/helpers/cli.js +0 -255
  144. package/lib/helpers/util.js +0 -134
  145. package/lib/models/deployment.js +0 -455
  146. package/lib/models/request.js +0 -98
  147. package/lib/models/user.js +0 -138
  148. package/lib/server.js +0 -165
  149. package/lib/static/not-found.html +0 -30
  150. package/lib/static/page-could-not-load.html +0 -30
  151. package/lib/static/static-server.js +0 -69
  152. package/test/fixtures/docker/Dockerfile +0 -5
  153. package/test/fixtures/docker/index.js +0 -12
  154. package/test/fixtures/node/index.js +0 -8
  155. package/test/fixtures/node/package.json +0 -15
  156. package/test/fixtures/static/index.html +0 -14
  157. package/test/fixtures/static/main.css +0 -7
  158. package/test/fixtures/static/out.gifcd +0 -0
  159. package/test/fixtures/unknown/.gitkeep +0 -0
  160. package/test/lib/classifier.js +0 -51
  161. package/test/lib/helpers/util.js +0 -47
@@ -1,707 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <title>lib/helpers/util - Documentation</title>
7
-
8
- <script src="scripts/prettify/prettify.js"></script>
9
- <script src="scripts/prettify/lang-css.js"></script>
10
- <!--[if lt IE 9]>
11
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
12
- <![endif]-->
13
- <link type="text/css" rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
14
- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
15
- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
16
- </head>
17
- <body>
18
-
19
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
20
- <label for="nav-trigger" class="navicon-button x">
21
- <div class="navicon"></div>
22
- </label>
23
-
24
- <label for="nav-trigger" class="overlay"></label>
25
-
26
- <nav>
27
- <li class="nav-link nav-home-link"><a href="index.html">Home</a></li><li class="nav-heading">Classes</li><li class="nav-heading"><span class="nav-item-type type-class">C</span><span class="nav-item-name"><a href="CLI.html">CLI</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.cacheCredentials">cacheCredentials</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.createBundle">createBundle</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.deleteDeployment">deleteDeployment</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.getCredentials">getCredentials</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.getDeployments">getDeployments</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.getLogs">getLogs</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.getUserDetails">getUserDetails</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.login">login</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.logout">logout</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.register">register</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.removeBundle">removeBundle</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.uploadBundle">uploadBundle</a></span></li><li class="nav-heading"><span class="nav-item-type type-class">C</span><span class="nav-item-name"><a href="Deployment.html">Deployment</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.decorate">decorate</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.del">del</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.get">get</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.getAll">getAll</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.logs">logs</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.proxy">proxy</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.remove">remove</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.start">start</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.stop">stop</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.update">update</a></span></li><li class="nav-heading"><span class="nav-item-type type-class">C</span><span class="nav-item-name"><a href="Request.html">Request</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Request.html#.count">count</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Request.html#.del">del</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Request.html#.log">log</a></span></li><li class="nav-heading"><span class="nav-item-type type-class">C</span><span class="nav-item-name"><a href="User.html">User</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="User.html#.authenticate">authenticate</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="User.html#.authenticateMiddleware">authenticateMiddleware</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="User.html#.login">login</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="User.html#.logout">logout</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="User.html#.register">register</a></span></li><li class="nav-heading">Modules</li><li class="nav-heading"><span class="nav-item-type type-module">M</span><span class="nav-item-name"><a href="module-lib_classifier.html">lib/classifier</a></span></li><li class="nav-heading"><span class="nav-item-type type-module">M</span><span class="nav-item-name"><a href="module-lib_deploy.html">lib/deploy</a></span></li><li class="nav-heading"><span class="nav-item-type type-module">M</span><span class="nav-item-name"><a href="module-lib_helpers_util.html">lib/helpers/util</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="module-lib_helpers_util.html#.mk">mk</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="module-lib_helpers_util.html#~contains">contains</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="module-lib_helpers_util.html#~getPort">getPort</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="module-lib_helpers_util.html#~hash">hash</a></span></li>
28
- </nav>
29
-
30
- <div id="main">
31
-
32
- <h1 class="page-title">lib/helpers/util</h1>
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
- <section>
41
-
42
- <header>
43
-
44
-
45
-
46
- </header>
47
-
48
- <article>
49
- <div class="container-overview">
50
-
51
-
52
-
53
-
54
-
55
- </div>
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
- <h3 class="subsection-title">Methods</h3>
71
-
72
-
73
-
74
- <div class="section-method">
75
-
76
-
77
-
78
- <h4 class="name" id=".mk"><span class="type-signature">(static) </span>mk<span class="signature">(directory)</span><span class="type-signature"> &rarr; {Promise}</span></h4>
79
-
80
-
81
-
82
-
83
-
84
- <div class="description">
85
- <p>makes a directory recursively</p>
86
- </div>
87
-
88
-
89
-
90
-
91
-
92
- <dl class="details">
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
- <dt class="tag-source">Source:</dt>
120
- <dd class="tag-source"><ul class="dummy"><li>
121
- <a href="helpers_util.js.html">helpers/util.js</a>, <a href="helpers_util.js.html#line46">line 46</a>
122
- </li></ul></dd>
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
- </dl>
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
- <h5>Parameters:</h5>
141
-
142
-
143
- <table class="params">
144
- <thead>
145
- <tr>
146
-
147
- <th>Name</th>
148
-
149
-
150
- <th>Type</th>
151
-
152
-
153
-
154
-
155
-
156
- <th class="last">Description</th>
157
- </tr>
158
- </thead>
159
-
160
- <tbody>
161
-
162
-
163
- <tr>
164
-
165
- <td class="name"><code>directory</code></td>
166
-
167
-
168
- <td class="type">
169
-
170
-
171
- <span class="param-type"><code>String</code></span>
172
-
173
-
174
-
175
- </td>
176
-
177
-
178
-
179
-
180
-
181
- <td class="description last">
182
- <p>path to future directory</p>
183
-
184
- </td>
185
- </tr>
186
-
187
-
188
- </tbody>
189
- </table>
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
- <div class="section-returns">
205
- <h5>Returns:</h5>
206
-
207
-
208
-
209
- <dl class="param-type">
210
- <dt>
211
- Type:
212
- </dt>
213
- <dd>
214
-
215
- <span class="param-type"><code>Promise</code></span>
216
-
217
-
218
- </dd>
219
- </dl>
220
-
221
-
222
-
223
- </div>
224
-
225
-
226
-
227
- </div>
228
-
229
-
230
- <div class="section-method">
231
-
232
-
233
-
234
- <h4 class="name" id="~contains"><span class="type-signature">(inner) </span>contains<span class="signature">(arr, contains)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
235
-
236
-
237
-
238
-
239
-
240
- <div class="description">
241
- <p>contains is a function that takes an array and see if the condition matches</p>
242
- </div>
243
-
244
-
245
-
246
-
247
-
248
- <dl class="details">
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
-
261
-
262
-
263
-
264
-
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
- <dt class="tag-source">Source:</dt>
276
- <dd class="tag-source"><ul class="dummy"><li>
277
- <a href="helpers_util.js.html">helpers/util.js</a>, <a href="helpers_util.js.html#line99">line 99</a>
278
- </li></ul></dd>
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
- </dl>
287
-
288
-
289
-
290
-
291
-
292
-
293
-
294
-
295
-
296
- <h5>Parameters:</h5>
297
-
298
-
299
- <table class="params">
300
- <thead>
301
- <tr>
302
-
303
- <th>Name</th>
304
-
305
-
306
- <th>Type</th>
307
-
308
-
309
-
310
-
311
-
312
- <th class="last">Description</th>
313
- </tr>
314
- </thead>
315
-
316
- <tbody>
317
-
318
-
319
- <tr>
320
-
321
- <td class="name"><code>arr</code></td>
322
-
323
-
324
- <td class="type">
325
-
326
-
327
- <span class="param-type"><code>Array</code></span>
328
-
329
-
330
-
331
- </td>
332
-
333
-
334
-
335
-
336
-
337
- <td class="description last">
338
- <p>array to check with rules</p>
339
-
340
- </td>
341
- </tr>
342
-
343
-
344
-
345
- <tr>
346
-
347
- <td class="name"><code>contains</code></td>
348
-
349
-
350
- <td class="type">
351
-
352
-
353
- <span class="param-type"><code>Array</code></span>
354
-
355
-
356
-
357
- </td>
358
-
359
-
360
-
361
-
362
-
363
- <td class="description last">
364
- <p>rules to make sure the arr contains the following</p>
365
-
366
- </td>
367
- </tr>
368
-
369
-
370
- </tbody>
371
- </table>
372
-
373
-
374
-
375
-
376
-
377
-
378
-
379
-
380
-
381
-
382
-
383
-
384
-
385
-
386
- <div class="section-returns">
387
- <h5>Returns:</h5>
388
-
389
-
390
-
391
- <dl class="param-type">
392
- <dt>
393
- Type:
394
- </dt>
395
- <dd>
396
-
397
- <span class="param-type"><code>Boolean</code></span>
398
-
399
-
400
- </dd>
401
- </dl>
402
-
403
-
404
- <div class="param-desc">
405
- <ul>
406
- <li>responds back with a boolean value</li>
407
- </ul>
408
- </div>
409
-
410
-
411
- </div>
412
-
413
-
414
-
415
- <div class="section-examples">
416
- <h5>Example</h5>
417
-
418
- <pre class="prettyprint"><code>contains(['index.html', 'main.css'], ['index.html', '!Dockerfile', '!package.json'])</code></pre>
419
-
420
- </div>
421
-
422
- </div>
423
-
424
-
425
- <div class="section-method">
426
-
427
-
428
-
429
- <h4 class="name" id="~getPort"><span class="type-signature">(inner) </span>getPort<span class="signature">()</span><span class="type-signature"> &rarr; {Promise}</span></h4>
430
-
431
-
432
-
433
-
434
-
435
- <div class="description">
436
- <p>gets an open port</p>
437
- </div>
438
-
439
-
440
-
441
-
442
-
443
- <dl class="details">
444
-
445
-
446
-
447
-
448
-
449
-
450
-
451
-
452
-
453
-
454
-
455
-
456
-
457
-
458
-
459
-
460
-
461
-
462
-
463
-
464
-
465
-
466
-
467
-
468
-
469
-
470
- <dt class="tag-source">Source:</dt>
471
- <dd class="tag-source"><ul class="dummy"><li>
472
- <a href="helpers_util.js.html">helpers/util.js</a>, <a href="helpers_util.js.html#line17">line 17</a>
473
- </li></ul></dd>
474
-
475
-
476
-
477
-
478
-
479
-
480
-
481
- </dl>
482
-
483
-
484
-
485
-
486
-
487
-
488
-
489
-
490
-
491
-
492
-
493
-
494
-
495
-
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
- <div class="section-returns">
504
- <h5>Returns:</h5>
505
-
506
-
507
-
508
- <dl class="param-type">
509
- <dt>
510
- Type:
511
- </dt>
512
- <dd>
513
-
514
- <span class="param-type"><code>Promise</code></span>
515
-
516
-
517
- </dd>
518
- </dl>
519
-
520
-
521
-
522
- </div>
523
-
524
-
525
-
526
- </div>
527
-
528
-
529
- <div class="section-method">
530
-
531
-
532
-
533
- <h4 class="name" id="~hash"><span class="type-signature">(inner) </span>hash<span class="signature">(length)</span><span class="type-signature"> &rarr; {String}</span></h4>
534
-
535
-
536
-
537
-
538
-
539
- <div class="description">
540
- <p>gets a lowercase random string with specified length</p>
541
- </div>
542
-
543
-
544
-
545
-
546
-
547
- <dl class="details">
548
-
549
-
550
-
551
-
552
-
553
-
554
-
555
-
556
-
557
-
558
-
559
-
560
-
561
-
562
-
563
-
564
-
565
-
566
-
567
-
568
-
569
-
570
-
571
-
572
-
573
-
574
- <dt class="tag-source">Source:</dt>
575
- <dd class="tag-source"><ul class="dummy"><li>
576
- <a href="helpers_util.js.html">helpers/util.js</a>, <a href="helpers_util.js.html#line70">line 70</a>
577
- </li></ul></dd>
578
-
579
-
580
-
581
-
582
-
583
-
584
-
585
- </dl>
586
-
587
-
588
-
589
-
590
-
591
-
592
-
593
-
594
-
595
- <h5>Parameters:</h5>
596
-
597
-
598
- <table class="params">
599
- <thead>
600
- <tr>
601
-
602
- <th>Name</th>
603
-
604
-
605
- <th>Type</th>
606
-
607
-
608
-
609
-
610
-
611
- <th class="last">Description</th>
612
- </tr>
613
- </thead>
614
-
615
- <tbody>
616
-
617
-
618
- <tr>
619
-
620
- <td class="name"><code>length</code></td>
621
-
622
-
623
- <td class="type">
624
-
625
-
626
- <span class="param-type"><code>Number</code></span>
627
-
628
-
629
-
630
- </td>
631
-
632
-
633
-
634
-
635
-
636
- <td class="description last">
637
- <p>the specified length of the random string</p>
638
-
639
- </td>
640
- </tr>
641
-
642
-
643
- </tbody>
644
- </table>
645
-
646
-
647
-
648
-
649
-
650
-
651
-
652
-
653
-
654
-
655
-
656
-
657
-
658
-
659
- <div class="section-returns">
660
- <h5>Returns:</h5>
661
-
662
-
663
-
664
- <dl class="param-type">
665
- <dt>
666
- Type:
667
- </dt>
668
- <dd>
669
-
670
- <span class="param-type"><code>String</code></span>
671
-
672
-
673
- </dd>
674
- </dl>
675
-
676
-
677
-
678
- </div>
679
-
680
-
681
-
682
- </div>
683
-
684
-
685
-
686
-
687
-
688
-
689
- </article>
690
-
691
- </section>
692
-
693
-
694
-
695
-
696
- </div>
697
-
698
- <br class="clear">
699
-
700
- <footer>
701
- Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> using the Minami theme.
702
- </footer>
703
-
704
- <script>prettyPrint();</script>
705
- <script src="scripts/linenumber.js"></script>
706
- </body>
707
- </html>