@ngrok/ngrok 0.1.1 → 0.2.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/.prettierrc.json +3 -0
- package/CHANGELOG.md +5 -0
- package/Cargo.toml +1 -1
- package/README.md +35 -1
- package/RELEASE.md +3 -3
- package/docs/assets/style.css +4 -5
- package/docs/classes/NgrokHttpTunnel.html +9 -9
- package/docs/classes/NgrokHttpTunnelBuilder.html +21 -21
- package/docs/classes/NgrokLabeledTunnel.html +8 -8
- package/docs/classes/NgrokLabeledTunnelBuilder.html +4 -4
- package/docs/classes/NgrokSession.html +7 -7
- package/docs/classes/NgrokSessionBuilder.html +15 -15
- package/docs/classes/NgrokTcpTunnel.html +9 -9
- package/docs/classes/NgrokTcpTunnelBuilder.html +8 -8
- package/docs/classes/NgrokTlsTunnel.html +9 -9
- package/docs/classes/NgrokTlsTunnelBuilder.html +10 -10
- package/docs/classes/UpdateRequest.html +3 -3
- package/docs/functions/consoleLog.html +1 -1
- package/docs/functions/listen.html +1 -1
- package/docs/functions/listenable.html +1 -1
- package/docs/functions/loggingCallback.html +1 -1
- package/docs/index.html +39 -1
- package/examples/express/ngrok-express-quickstart.js +11 -0
- package/examples/express/ngrok-express.js +28 -0
- package/examples/express/package.json +7 -0
- package/examples/fastify/ngrok-fastify.js +26 -0
- package/examples/fastify/package.json +7 -0
- package/examples/hapi/ngrok-hapi.js +35 -0
- package/examples/hapi/package.json +7 -0
- package/examples/koa/ngrok-koa.js +12 -0
- package/examples/koa/package.json +7 -0
- package/examples/nestjs/.eslintrc.js +25 -0
- package/examples/nestjs/.prettierrc +4 -0
- package/examples/nestjs/README.md +73 -0
- package/examples/nestjs/nest-cli.json +8 -0
- package/examples/nestjs/package-lock.json +12138 -0
- package/examples/nestjs/package.json +70 -0
- package/examples/nestjs/src/app.controller.spec.ts +22 -0
- package/examples/nestjs/src/app.controller.ts +12 -0
- package/examples/nestjs/src/app.module.ts +10 -0
- package/examples/nestjs/src/app.service.ts +8 -0
- package/examples/nestjs/src/main.ts +17 -0
- package/examples/nestjs/test/app.e2e-spec.ts +24 -0
- package/examples/nestjs/test/jest-e2e.json +9 -0
- package/examples/nestjs/tsconfig.build.json +4 -0
- package/examples/nestjs/tsconfig.json +21 -0
- package/examples/nextjs/next.config.js +12 -0
- package/examples/nextjs/ngrok.config.js +23 -0
- package/examples/nextjs/package.json +6 -0
- package/examples/nextjs/pages/index.js +5 -0
- package/examples/ngrok-http-full.js +28 -20
- package/examples/ngrok-http-minimum.js +21 -13
- package/examples/ngrok-labeled.js +21 -17
- package/examples/ngrok-listen.js +5 -6
- package/examples/ngrok-tcp.js +21 -17
- package/examples/ngrok-tls.js +22 -19
- package/examples/ngrok-typescript.ts +31 -26
- package/examples/ngrok-windows-pipe.js +22 -14
- package/examples/ngrok-winston.js +9 -9
- package/examples/package.json +11 -0
- package/examples/remix/.eslintrc.js +4 -0
- package/examples/remix/README.md +53 -0
- package/examples/remix/app/entry.client.tsx +18 -0
- package/examples/remix/app/entry.server.tsx +101 -0
- package/examples/remix/app/root.tsx +20 -0
- package/examples/remix/app/routes/_index.tsx +30 -0
- package/examples/remix/ngrok.config.js +16 -0
- package/examples/remix/package.json +30 -0
- package/examples/remix/public/favicon.ico +0 -0
- package/examples/remix/remix.config.js +16 -0
- package/examples/remix/remix.env.d.ts +2 -0
- package/examples/remix/tsconfig.json +22 -0
- package/examples/svelte/README.md +38 -0
- package/examples/svelte/jsconfig.json +17 -0
- package/examples/svelte/ngrok.config.cjs +18 -0
- package/examples/svelte/package.json +22 -0
- package/examples/svelte/src/app.d.ts +12 -0
- package/examples/svelte/src/app.html +12 -0
- package/examples/svelte/src/routes/+page.svelte +2 -0
- package/examples/svelte/static/favicon.png +0 -0
- package/examples/svelte/svelte.config.js +14 -0
- package/examples/svelte/vite.config.js +6 -0
- package/examples/vue/.vscode/extensions.json +3 -0
- package/examples/vue/README.md +40 -0
- package/examples/vue/env.d.ts +1 -0
- package/examples/vue/index.html +13 -0
- package/examples/vue/ngrok.config.ts +18 -0
- package/examples/vue/package.json +25 -0
- package/examples/vue/public/favicon.ico +0 -0
- package/examples/vue/src/App.vue +47 -0
- package/examples/vue/src/assets/base.css +74 -0
- package/examples/vue/src/assets/logo.svg +1 -0
- package/examples/vue/src/assets/main.css +35 -0
- package/examples/vue/src/components/HelloWorld.vue +40 -0
- package/examples/vue/src/components/TheWelcome.vue +86 -0
- package/examples/vue/src/components/WelcomeItem.vue +86 -0
- package/examples/vue/src/components/icons/IconCommunity.vue +7 -0
- package/examples/vue/src/components/icons/IconDocumentation.vue +7 -0
- package/examples/vue/src/components/icons/IconEcosystem.vue +7 -0
- package/examples/vue/src/components/icons/IconSupport.vue +7 -0
- package/examples/vue/src/components/icons/IconTooling.vue +19 -0
- package/examples/vue/src/main.ts +6 -0
- package/examples/vue/tsconfig.json +16 -0
- package/examples/vue/tsconfig.node.json +8 -0
- package/examples/vue/vite.config.ts +15 -0
- package/flake.nix +1 -1
- package/index.d.ts +9 -4
- package/index.js +27 -26
- package/package.json +19 -20
- package/post-build.js +18 -11
- package/scripts/gc-node-drop.js +38 -31
- package/scripts/gc-rust-drop.js +44 -38
- package/trailer.d.ts +9 -4
- package/trailer.js +27 -26
- package/examples/ngrok-express-quickstart.js +0 -11
- package/examples/ngrok-express.js +0 -26
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<ul class="tsd-hierarchy">
|
|
24
24
|
<li><span class="target">NgrokTlsTunnelBuilder</span></li></ul></section><aside class="tsd-sources">
|
|
25
25
|
<ul>
|
|
26
|
-
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/
|
|
26
|
+
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/26e020b/index.d.ts#L398">index.d.ts:398</a></li></ul></aside>
|
|
27
27
|
<section class="tsd-panel-group tsd-index-group">
|
|
28
28
|
<section class="tsd-panel tsd-index-panel">
|
|
29
29
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -70,7 +70,7 @@ Call multiple times to add additional CIDR ranges.</p>
|
|
|
70
70
|
<h5>cidr: <span class="tsd-signature-type">string</span></h5></li></ul></div>
|
|
71
71
|
<h4 class="tsd-returns-title">Returns <a href="NgrokTlsTunnelBuilder.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokTlsTunnelBuilder</a></h4><aside class="tsd-sources">
|
|
72
72
|
<ul>
|
|
73
|
-
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/
|
|
73
|
+
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/26e020b/index.d.ts#L413">index.d.ts:413</a></li></ul></aside></li></ul></section>
|
|
74
74
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="denyCidr" class="tsd-anchor"></a>
|
|
75
75
|
<h3 class="tsd-anchor-link"><span>deny<wbr/>Cidr</span><a href="#denyCidr" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
76
76
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -86,7 +86,7 @@ Call multiple times to add additional CIDR ranges.</p>
|
|
|
86
86
|
<h5>cidr: <span class="tsd-signature-type">string</span></h5></li></ul></div>
|
|
87
87
|
<h4 class="tsd-returns-title">Returns <a href="NgrokTlsTunnelBuilder.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokTlsTunnelBuilder</a></h4><aside class="tsd-sources">
|
|
88
88
|
<ul>
|
|
89
|
-
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/
|
|
89
|
+
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/26e020b/index.d.ts#L418">index.d.ts:418</a></li></ul></aside></li></ul></section>
|
|
90
90
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="domain" class="tsd-anchor"></a>
|
|
91
91
|
<h3 class="tsd-anchor-link"><span>domain</span><a href="#domain" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
92
92
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -101,7 +101,7 @@ Call multiple times to add additional CIDR ranges.</p>
|
|
|
101
101
|
<h5>domain: <span class="tsd-signature-type">string</span></h5></li></ul></div>
|
|
102
102
|
<h4 class="tsd-returns-title">Returns <a href="NgrokTlsTunnelBuilder.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokTlsTunnelBuilder</a></h4><aside class="tsd-sources">
|
|
103
103
|
<ul>
|
|
104
|
-
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/
|
|
104
|
+
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/26e020b/index.d.ts#L400">index.d.ts:400</a></li></ul></aside></li></ul></section>
|
|
105
105
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="forwardsTo" class="tsd-anchor"></a>
|
|
106
106
|
<h3 class="tsd-anchor-link"><span>forwards<wbr/>To</span><a href="#forwardsTo" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
107
107
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -117,7 +117,7 @@ bearing on tunnel behavior.</p>
|
|
|
117
117
|
<h5>forwardsTo: <span class="tsd-signature-type">string</span></h5></li></ul></div>
|
|
118
118
|
<h4 class="tsd-returns-title">Returns <a href="NgrokTlsTunnelBuilder.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokTlsTunnelBuilder</a></h4><aside class="tsd-sources">
|
|
119
119
|
<ul>
|
|
120
|
-
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/
|
|
120
|
+
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/26e020b/index.d.ts#L425">index.d.ts:425</a></li></ul></aside></li></ul></section>
|
|
121
121
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="listen" class="tsd-anchor"></a>
|
|
122
122
|
<h3 class="tsd-anchor-link"><span>listen</span><a href="#listen" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
123
123
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -132,7 +132,7 @@ bearing on tunnel behavior.</p>
|
|
|
132
132
|
<h5><code class="tsd-tag ts-flagOptional">Optional</code> bind: <span class="tsd-signature-type">boolean</span></h5></li></ul></div>
|
|
133
133
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="NgrokTlsTunnel.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokTlsTunnel</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
134
134
|
<ul>
|
|
135
|
-
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/
|
|
135
|
+
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/26e020b/index.d.ts#L408">index.d.ts:408</a></li></ul></aside></li></ul></section>
|
|
136
136
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="metadata" class="tsd-anchor"></a>
|
|
137
137
|
<h3 class="tsd-anchor-link"><span>metadata</span><a href="#metadata" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
138
138
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -147,7 +147,7 @@ bearing on tunnel behavior.</p>
|
|
|
147
147
|
<h5>metadata: <span class="tsd-signature-type">string</span></h5></li></ul></div>
|
|
148
148
|
<h4 class="tsd-returns-title">Returns <a href="NgrokTlsTunnelBuilder.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokTlsTunnelBuilder</a></h4><aside class="tsd-sources">
|
|
149
149
|
<ul>
|
|
150
|
-
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/
|
|
150
|
+
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/26e020b/index.d.ts#L406">index.d.ts:406</a></li></ul></aside></li></ul></section>
|
|
151
151
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="mutualTlsca" class="tsd-anchor"></a>
|
|
152
152
|
<h3 class="tsd-anchor-link"><span>mutual<wbr/>Tlsca</span><a href="#mutualTlsca" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
153
153
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -162,7 +162,7 @@ bearing on tunnel behavior.</p>
|
|
|
162
162
|
<h5>mutualTlsca: <span class="tsd-signature-type">Uint8Array</span></h5></li></ul></div>
|
|
163
163
|
<h4 class="tsd-returns-title">Returns <a href="NgrokTlsTunnelBuilder.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokTlsTunnelBuilder</a></h4><aside class="tsd-sources">
|
|
164
164
|
<ul>
|
|
165
|
-
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/
|
|
165
|
+
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/26e020b/index.d.ts#L402">index.d.ts:402</a></li></ul></aside></li></ul></section>
|
|
166
166
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="proxyProto" class="tsd-anchor"></a>
|
|
167
167
|
<h3 class="tsd-anchor-link"><span>proxy<wbr/>Proto</span><a href="#proxyProto" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
168
168
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -177,7 +177,7 @@ bearing on tunnel behavior.</p>
|
|
|
177
177
|
<h5>proxyProto: <span class="tsd-signature-type">string</span></h5></li></ul></div>
|
|
178
178
|
<h4 class="tsd-returns-title">Returns <a href="NgrokTlsTunnelBuilder.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokTlsTunnelBuilder</a></h4><aside class="tsd-sources">
|
|
179
179
|
<ul>
|
|
180
|
-
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/
|
|
180
|
+
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/26e020b/index.d.ts#L420">index.d.ts:420</a></li></ul></aside></li></ul></section>
|
|
181
181
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="termination" class="tsd-anchor"></a>
|
|
182
182
|
<h3 class="tsd-anchor-link"><span>termination</span><a href="#termination" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
183
183
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -194,7 +194,7 @@ bearing on tunnel behavior.</p>
|
|
|
194
194
|
<h5>keyPem: <span class="tsd-signature-type">Uint8Array</span></h5></li></ul></div>
|
|
195
195
|
<h4 class="tsd-returns-title">Returns <a href="NgrokTlsTunnelBuilder.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokTlsTunnelBuilder</a></h4><aside class="tsd-sources">
|
|
196
196
|
<ul>
|
|
197
|
-
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/
|
|
197
|
+
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/26e020b/index.d.ts#L404">index.d.ts:404</a></li></ul></aside></li></ul></section></section></div>
|
|
198
198
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
199
199
|
<div class="tsd-navigation settings">
|
|
200
200
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<ul class="tsd-hierarchy">
|
|
21
21
|
<li><span class="target">UpdateRequest</span></li></ul></section><aside class="tsd-sources">
|
|
22
22
|
<ul>
|
|
23
|
-
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/
|
|
23
|
+
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/26e020b/index.d.ts#L161">index.d.ts:161</a></li></ul></aside>
|
|
24
24
|
<section class="tsd-panel-group tsd-index-group">
|
|
25
25
|
<section class="tsd-panel tsd-index-panel">
|
|
26
26
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
<div class="tsd-comment tsd-typography"><p>Whether or not updating to the same major version is sufficient.</p>
|
|
52
52
|
</div><aside class="tsd-sources">
|
|
53
53
|
<ul>
|
|
54
|
-
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/
|
|
54
|
+
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/26e020b/index.d.ts#L165">index.d.ts:165</a></li></ul></aside></section>
|
|
55
55
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="version" class="tsd-anchor"></a>
|
|
56
56
|
<h3 class="tsd-anchor-link"><span>version</span><a href="#version" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
57
57
|
<div class="tsd-signature">version<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
58
58
|
<div class="tsd-comment tsd-typography"><p>The version that the agent is requested to update to.</p>
|
|
59
59
|
</div><aside class="tsd-sources">
|
|
60
60
|
<ul>
|
|
61
|
-
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/
|
|
61
|
+
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/26e020b/index.d.ts#L163">index.d.ts:163</a></li></ul></aside></section></section></div>
|
|
62
62
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
63
63
|
<div class="tsd-navigation settings">
|
|
64
64
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -29,7 +29,7 @@ Optionally set the logging level to one of ERROR, WARN, INFO, DEBUG, or TRACE.</
|
|
|
29
29
|
<h5><code class="tsd-tag ts-flagOptional">Optional</code> level: <span class="tsd-signature-type">String</span></h5></li></ul></div>
|
|
30
30
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4><aside class="tsd-sources">
|
|
31
31
|
<ul>
|
|
32
|
-
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/
|
|
32
|
+
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/26e020b/index.d.ts#L449">index.d.ts:449</a></li></ul></aside></li></ul></section></div>
|
|
33
33
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
34
34
|
<div class="tsd-navigation settings">
|
|
35
35
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<h5><code class="tsd-tag ts-flagOptional">Optional</code> tunnel: <a href="../classes/NgrokHttpTunnel.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokHttpTunnel</a><span class="tsd-signature-symbol"> | </span><a href="../classes/NgrokTcpTunnel.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokTcpTunnel</a><span class="tsd-signature-symbol"> | </span><a href="../classes/NgrokTlsTunnel.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokTlsTunnel</a><span class="tsd-signature-symbol"> | </span><a href="../classes/NgrokLabeledTunnel.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokLabeledTunnel</a></h5></li></ul></div>
|
|
31
31
|
<h4 class="tsd-returns-title">Returns <a href="../classes/NgrokHttpTunnel.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokHttpTunnel</a><span class="tsd-signature-symbol"> | </span><a href="../classes/NgrokTcpTunnel.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokTcpTunnel</a><span class="tsd-signature-symbol"> | </span><a href="../classes/NgrokTlsTunnel.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokTlsTunnel</a><span class="tsd-signature-symbol"> | </span><a href="../classes/NgrokLabeledTunnel.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokLabeledTunnel</a></h4><aside class="tsd-sources">
|
|
32
32
|
<ul>
|
|
33
|
-
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/
|
|
33
|
+
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/26e020b/index.d.ts#L441">index.d.ts:441</a></li></ul></aside></li></ul></section></div>
|
|
34
34
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
35
35
|
<div class="tsd-navigation settings">
|
|
36
36
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<h5><code class="tsd-tag ts-flagOptional">Optional</code> tunnel: <a href="../classes/NgrokHttpTunnel.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokHttpTunnel</a><span class="tsd-signature-symbol"> | </span><a href="../classes/NgrokTcpTunnel.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokTcpTunnel</a><span class="tsd-signature-symbol"> | </span><a href="../classes/NgrokTlsTunnel.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokTlsTunnel</a><span class="tsd-signature-symbol"> | </span><a href="../classes/NgrokLabeledTunnel.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokLabeledTunnel</a></h5></li></ul></div>
|
|
29
29
|
<h4 class="tsd-returns-title">Returns <a href="../classes/NgrokHttpTunnel.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokHttpTunnel</a><span class="tsd-signature-symbol"> | </span><a href="../classes/NgrokTcpTunnel.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokTcpTunnel</a><span class="tsd-signature-symbol"> | </span><a href="../classes/NgrokTlsTunnel.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokTlsTunnel</a><span class="tsd-signature-symbol"> | </span><a href="../classes/NgrokLabeledTunnel.html" class="tsd-signature-type" data-tsd-kind="Class">NgrokLabeledTunnel</a></h4><aside class="tsd-sources">
|
|
30
30
|
<ul>
|
|
31
|
-
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/
|
|
31
|
+
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/26e020b/index.d.ts#L437">index.d.ts:437</a></li></ul></aside></li></ul></section></div>
|
|
32
32
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
33
33
|
<div class="tsd-navigation settings">
|
|
34
34
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -47,7 +47,7 @@ The log level defaults to INFO, it can be set to one of ERROR, WARN, INFO, DEBUG
|
|
|
47
47
|
<h5><code class="tsd-tag ts-flagOptional">Optional</code> level: <span class="tsd-signature-type">string</span></h5></li></ul></div>
|
|
48
48
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
49
49
|
<ul>
|
|
50
|
-
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/
|
|
50
|
+
<li>Defined in <a href="https://github.com/ngrok/ngrok-js/blob/26e020b/index.d.ts#L11">index.d.ts:11</a></li></ul></aside></li></ul></section></div>
|
|
51
51
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
52
52
|
<div class="tsd-navigation settings">
|
|
53
53
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
package/docs/index.html
CHANGED
|
@@ -51,8 +51,46 @@ A minimal use-case looks like the following:</p>
|
|
|
51
51
|
<pre><code class="language-jsx"><span class="hl-2">const</span><span class="hl-0"> </span><span class="hl-3">server</span><span class="hl-0"> = </span><span class="hl-4">require</span><span class="hl-0">(</span><span class="hl-1">'http'</span><span class="hl-0">).</span><span class="hl-4">createServer</span><span class="hl-0">(</span><br/><span class="hl-0"> </span><span class="hl-2">function</span><span class="hl-0">(</span><span class="hl-5">req</span><span class="hl-0">,</span><span class="hl-5">res</span><span class="hl-0">){</span><span class="hl-5">res</span><span class="hl-0">.</span><span class="hl-4">writeHead</span><span class="hl-0">(</span><span class="hl-6">200</span><span class="hl-0">);</span><br/><span class="hl-0"> </span><span class="hl-5">res</span><span class="hl-0">.</span><span class="hl-4">write</span><span class="hl-0">(</span><span class="hl-1">'Hello'</span><span class="hl-0">);</span><br/><span class="hl-0"> </span><span class="hl-5">res</span><span class="hl-0">.</span><span class="hl-4">end</span><span class="hl-0">();</span><br/><span class="hl-0">} );</span><br/><br/><span class="hl-2">var</span><span class="hl-0"> </span><span class="hl-5">ngrok</span><span class="hl-0"> = </span><span class="hl-4">require</span><span class="hl-0">(</span><span class="hl-1">'@ngrok/ngrok'</span><span class="hl-0">);</span><br/><br/><span class="hl-5">ngrok</span><span class="hl-0">.</span><span class="hl-4">listen</span><span class="hl-0">(</span><span class="hl-5">server</span><span class="hl-0">).</span><span class="hl-4">then</span><span class="hl-0">(() </span><span class="hl-2">=></span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-5">console</span><span class="hl-0">.</span><span class="hl-4">log</span><span class="hl-0">(</span><span class="hl-1">"url: "</span><span class="hl-0"> + </span><span class="hl-5">server</span><span class="hl-0">.</span><span class="hl-5">tunnel</span><span class="hl-0">.</span><span class="hl-4">url</span><span class="hl-0">());</span><br/><span class="hl-0">});</span>
|
|
52
52
|
</code></pre>
|
|
53
53
|
|
|
54
|
+
<a href="#examples" id="examples" style="color: inherit; text-decoration: none;">
|
|
55
|
+
<h1>Examples</h1>
|
|
56
|
+
</a>
|
|
57
|
+
<p>Degit can be used for cloning and running an example directory like this:</p>
|
|
58
|
+
<pre><code class="language-bash"><span class="hl-0">npx </span><span class="hl-1">degit</span><span class="hl-0"> </span><span class="hl-1">github:ngrok/ngrok-js/examples/</span><span class="hl-0"><</span><span class="hl-1">exampl</span><span class="hl-0">e> <</span><span class="hl-1">folder-nam</span><span class="hl-0">e></span><br/><span class="hl-4">cd</span><span class="hl-0"> <</span><span class="hl-1">folder-nam</span><span class="hl-0">e></span><br/><span class="hl-0">npm </span><span class="hl-1">i</span>
|
|
59
|
+
</code></pre>
|
|
60
|
+
<p>For example:</p>
|
|
61
|
+
<pre><code class="language-bash"><span class="hl-0">npx </span><span class="hl-1">degit</span><span class="hl-0"> </span><span class="hl-1">github:ngrok/ngrok-js/examples/express</span><span class="hl-0"> </span><span class="hl-1">express</span><span class="hl-0"> && </span><span class="hl-4">cd</span><span class="hl-0"> </span><span class="hl-1">express</span><span class="hl-0"> && npm </span><span class="hl-1">i</span>
|
|
62
|
+
</code></pre>
|
|
63
|
+
|
|
64
|
+
<a href="#frameworks" id="frameworks" style="color: inherit; text-decoration: none;">
|
|
65
|
+
<h2>Frameworks</h2>
|
|
66
|
+
</a>
|
|
67
|
+
<ul>
|
|
68
|
+
<li><a href="https://expressjs.com/">Express</a> - <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/express/ngrok-express-quickstart.js">Quickstart Example</a>, <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/express/ngrok-express.js">Configuration Example</a></li>
|
|
69
|
+
<li><a href="https://www.fastify.io/">Fastify</a> - <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/fastify/ngrok-fastify.js">Example</a></li>
|
|
70
|
+
<li><a href="https://hapi.dev/">Hapi</a> - <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/hapi/ngrok-hapi.js">Example</a></li>
|
|
71
|
+
<li><a href="https://koajs.com/">Koa</a> - <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/koa/ngrok-koa.js">Example</a></li>
|
|
72
|
+
<li><a href="https://nestjs.com/">Nest.js</a> - <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/nestjs/src/main.ts">Example main.ts</a></li>
|
|
73
|
+
<li><a href="https://nextjs.org/">Next.js</a> - <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/nextjs/next.config.js">Example next.config.js</a> loading <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/nextjs/ngrok.config.js">ngrok.config.js</a></li>
|
|
74
|
+
<li><a href="https://remix.run/">Remix</a> - <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/remix/remix.config.js">Example remix.config.js</a> loading <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/remix/ngrok.config.js">ngrok.config.js</a></li>
|
|
75
|
+
<li><a href="https://svelte.dev/">Svelte</a> - <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/svelte/svelte.config.js">Example svelte.config.js</a> (works in vite.config.js too) loading <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/svelte/ngrok.config.cjs">ngrok.config.cjs</a></li>
|
|
76
|
+
<li><a href="https://www.typescriptlang.org/">Typescript</a> - <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-typescript.ts">Example ts-node</a></li>
|
|
77
|
+
<li><a href="https://vuejs.org/">Vue</a> - <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/vue/vite.config.ts">Example vite.config.ts</a> loading <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/vue/ngrok.config.ts">ngrok.config.ts</a></li>
|
|
78
|
+
<li><a href="https://github.com/winstonjs/winston#readme">Winston</a> Logging - <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-winston.js">Example</a></li>
|
|
79
|
+
</ul>
|
|
80
|
+
|
|
81
|
+
<a href="#tunnel-types" id="tunnel-types" style="color: inherit; text-decoration: none;">
|
|
82
|
+
<h2>Tunnel Types</h2>
|
|
83
|
+
</a>
|
|
84
|
+
<ul>
|
|
85
|
+
<li>HTTP - <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-listen.js">ngrok.listen Example</a>, <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-http-minimum.js">Minimal Example</a>, <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-http-full.js">Full Configuration Example</a></li>
|
|
86
|
+
<li>Labeled - <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-labeled.js">Example</a></li>
|
|
87
|
+
<li>TCP - <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-tcp.js">Example</a></li>
|
|
88
|
+
<li>TLS - <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-tls.js">Example</a></li>
|
|
89
|
+
<li>Windows Pipe - <a href="https://github.com/ngrok/ngrok-js/blob/main/examples/ngrok-windows-pipe.js">Example</a></li>
|
|
90
|
+
</ul>
|
|
91
|
+
|
|
54
92
|
<a href="#async-programming" id="async-programming" style="color: inherit; text-decoration: none;">
|
|
55
|
-
<
|
|
93
|
+
<h1>Async Programming</h1>
|
|
56
94
|
</a>
|
|
57
95
|
<p>All methods return a <code>Promise</code> and are suitable for use in asynchronous
|
|
58
96
|
programming. You can use callback chaining with <code>.then()</code> and <code>.catch()</code> syntax
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const express = require("express");
|
|
2
|
+
const ngrok = require("@ngrok/ngrok");
|
|
3
|
+
const app = express();
|
|
4
|
+
|
|
5
|
+
app.get("/", (req, res) => {
|
|
6
|
+
res.send("Hello World!");
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
ngrok.listen(app).then(() => {
|
|
10
|
+
console.log("established tunnel at: " + app.tunnel.url());
|
|
11
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const express = require("express");
|
|
2
|
+
const ngrok = require("@ngrok/ngrok");
|
|
3
|
+
const app = express();
|
|
4
|
+
|
|
5
|
+
app.get("/", (req, res) => {
|
|
6
|
+
res.send("Hello World!");
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
async function setup() {
|
|
10
|
+
// create session
|
|
11
|
+
const session = await new ngrok.NgrokSessionBuilder()
|
|
12
|
+
.authtokenFromEnv()
|
|
13
|
+
.metadata("Online in One Line")
|
|
14
|
+
.connect();
|
|
15
|
+
// create tunnel
|
|
16
|
+
const tunnel = await session
|
|
17
|
+
.httpEndpoint()
|
|
18
|
+
.allowCidr("0.0.0.0/0")
|
|
19
|
+
.oauth("google")
|
|
20
|
+
.requestHeader("X-Req-Yup", "true")
|
|
21
|
+
.listen();
|
|
22
|
+
// link tunnel to app
|
|
23
|
+
const socket = await ngrok.listen(app, tunnel);
|
|
24
|
+
console.log(`Ingress established at: ${tunnel.url()}`);
|
|
25
|
+
console.log(`Express listening on: ${socket.address()}`);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
setup();
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Require the framework and instantiate it
|
|
2
|
+
const fastify = require("fastify")({ logger: true });
|
|
3
|
+
const ngrok = require("@ngrok/ngrok");
|
|
4
|
+
|
|
5
|
+
// Declare a route
|
|
6
|
+
fastify.get("/", async (request, reply) => {
|
|
7
|
+
return { hello: "world" };
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
// Run the server!
|
|
11
|
+
const start = async () => {
|
|
12
|
+
try {
|
|
13
|
+
const port = 3000;
|
|
14
|
+
await fastify.listen({ port: port });
|
|
15
|
+
|
|
16
|
+
// Establish ingress
|
|
17
|
+
const session = await new ngrok.NgrokSessionBuilder().authtokenFromEnv().connect();
|
|
18
|
+
const tunnel = await session.httpEndpoint().listen();
|
|
19
|
+
tunnel.forwardTcp(`localhost:${port}`);
|
|
20
|
+
fastify.log.info(`Ingress established at: ${tunnel.url()}`);
|
|
21
|
+
} catch (err) {
|
|
22
|
+
fastify.log.error(err);
|
|
23
|
+
process.exit(1);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
start();
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const Hapi = require("@hapi/hapi");
|
|
4
|
+
const ngrok = require("@ngrok/ngrok");
|
|
5
|
+
|
|
6
|
+
const init = async () => {
|
|
7
|
+
const port = 3000;
|
|
8
|
+
const server = Hapi.server({
|
|
9
|
+
port: port,
|
|
10
|
+
host: "localhost",
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
server.route({
|
|
14
|
+
method: "GET",
|
|
15
|
+
path: "/",
|
|
16
|
+
handler: (request, h) => {
|
|
17
|
+
return "Hello World!";
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
await server.start();
|
|
22
|
+
console.log("Server running on %s", server.info.uri);
|
|
23
|
+
|
|
24
|
+
const session = await new ngrok.NgrokSessionBuilder().authtokenFromEnv().connect();
|
|
25
|
+
const tunnel = await session.httpEndpoint().listen();
|
|
26
|
+
console.log(`Ingress established at: ${tunnel.url()}`);
|
|
27
|
+
tunnel.forwardTcp(`localhost:${port}`);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
process.on("unhandledRejection", (err) => {
|
|
31
|
+
console.log(err);
|
|
32
|
+
process.exit(1);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
init();
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const Koa = require("koa");
|
|
2
|
+
const ngrok = require("@ngrok/ngrok");
|
|
3
|
+
const app = new Koa();
|
|
4
|
+
|
|
5
|
+
app.use(async (ctx) => {
|
|
6
|
+
ctx.body = "Hello World";
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
ngrok.listen(app).then((socket) => {
|
|
10
|
+
console.log(`Ingress established at: ${app.tunnel.url()}`);
|
|
11
|
+
console.log(`Koa listening on: ${socket.address()}`);
|
|
12
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
parser: '@typescript-eslint/parser',
|
|
3
|
+
parserOptions: {
|
|
4
|
+
project: 'tsconfig.json',
|
|
5
|
+
tsconfigRootDir: __dirname,
|
|
6
|
+
sourceType: 'module',
|
|
7
|
+
},
|
|
8
|
+
plugins: ['@typescript-eslint/eslint-plugin'],
|
|
9
|
+
extends: [
|
|
10
|
+
'plugin:@typescript-eslint/recommended',
|
|
11
|
+
'plugin:prettier/recommended',
|
|
12
|
+
],
|
|
13
|
+
root: true,
|
|
14
|
+
env: {
|
|
15
|
+
node: true,
|
|
16
|
+
jest: true,
|
|
17
|
+
},
|
|
18
|
+
ignorePatterns: ['.eslintrc.js'],
|
|
19
|
+
rules: {
|
|
20
|
+
'@typescript-eslint/interface-name-prefix': 'off',
|
|
21
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
22
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
23
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
24
|
+
},
|
|
25
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="200" alt="Nest Logo" /></a>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
|
|
6
|
+
[circleci-url]: https://circleci.com/gh/nestjs/nest
|
|
7
|
+
|
|
8
|
+
<p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
|
|
11
|
+
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
|
|
12
|
+
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
|
|
13
|
+
<a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a>
|
|
14
|
+
<a href="https://coveralls.io/github/nestjs/nest?branch=master" target="_blank"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#9" alt="Coverage" /></a>
|
|
15
|
+
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
|
|
16
|
+
<a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
|
|
17
|
+
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
|
|
18
|
+
<a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
|
|
19
|
+
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a>
|
|
20
|
+
<a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
|
|
21
|
+
</p>
|
|
22
|
+
<!--[](https://opencollective.com/nest#backer)
|
|
23
|
+
[](https://opencollective.com/nest#sponsor)-->
|
|
24
|
+
|
|
25
|
+
## Description
|
|
26
|
+
|
|
27
|
+
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
$ yarn install
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Running the app
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# development
|
|
39
|
+
$ yarn run start
|
|
40
|
+
|
|
41
|
+
# watch mode
|
|
42
|
+
$ yarn run start:dev
|
|
43
|
+
|
|
44
|
+
# production mode
|
|
45
|
+
$ yarn run start:prod
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Test
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# unit tests
|
|
52
|
+
$ yarn run test
|
|
53
|
+
|
|
54
|
+
# e2e tests
|
|
55
|
+
$ yarn run test:e2e
|
|
56
|
+
|
|
57
|
+
# test coverage
|
|
58
|
+
$ yarn run test:cov
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Support
|
|
62
|
+
|
|
63
|
+
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
|
|
64
|
+
|
|
65
|
+
## Stay in touch
|
|
66
|
+
|
|
67
|
+
- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
|
|
68
|
+
- Website - [https://nestjs.com](https://nestjs.com/)
|
|
69
|
+
- Twitter - [@nestframework](https://twitter.com/nestframework)
|
|
70
|
+
|
|
71
|
+
## License
|
|
72
|
+
|
|
73
|
+
Nest is [MIT licensed](LICENSE).
|