@bijayx/nepal-pay 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/LICENSE +21 -0
- package/README.md +319 -2
- package/dist/index.cjs +1039 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +427 -0
- package/dist/index.d.ts +427 -0
- package/dist/index.js +1016 -0
- package/dist/index.js.map +1 -0
- package/package.json +72 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented here. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses
|
|
5
|
+
[Semantic Versioning](https://semver.org/).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.1.0] - 2026-11-19
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Khalti KPG-2 web checkout: initiate, lookup, verify.
|
|
14
|
+
- eSewa ePay v2: signed form initiate, callback signature verification, status API lookup.
|
|
15
|
+
- `NepalPay` gateway manager with `extend()` for custom gateways, and `createNepalPayFromEnv()`.
|
|
16
|
+
- Typed error hierarchy with stable error codes.
|
|
17
|
+
- Amount and reference mismatch checks on verify.
|
|
18
|
+
- HTTP layer with timeouts, retries for read-only calls, injectable `fetch` and a logger that redacts secrets.
|
|
19
|
+
- `renderRedirectPage()` helper for GET and POST gateway redirects.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Bijay Shrestha
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,320 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @bijayx/nepal-pay
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Khalti and eSewa payments for Node.js, behind one typed API.
|
|
4
|
+
|
|
5
|
+
- **One interface** for both gateways: `initiate()`, `verify()`, `lookup()`.
|
|
6
|
+
- **Verification done right**: callbacks are never trusted; every payment is confirmed with the gateway's server, eSewa signatures are checked in constant time, and amount/reference mismatches throw.
|
|
7
|
+
- **Typed errors** with stable codes, safe to log (secret keys never appear in messages or logs).
|
|
8
|
+
- **Money in paisa** everywhere. No floats, no rupee/paisa mix-ups.
|
|
9
|
+
- **Zero runtime dependencies.** Node.js 20+, ESM and CommonJS, full TypeScript types.
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @bijayx/nepal-pay
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Contents
|
|
16
|
+
|
|
17
|
+
- [Quick start](#quick-start)
|
|
18
|
+
- [Configuration](#configuration)
|
|
19
|
+
- [The payment flow](#the-payment-flow)
|
|
20
|
+
- [API](#api)
|
|
21
|
+
- [Statuses](#statuses)
|
|
22
|
+
- [Errors](#errors)
|
|
23
|
+
- [Framework examples](#framework-examples)
|
|
24
|
+
- [Security checklist](#security-checklist)
|
|
25
|
+
- [Sandbox credentials](#sandbox-credentials)
|
|
26
|
+
- [Custom gateways](#custom-gateways)
|
|
27
|
+
- [Testing your app](#testing-your-app)
|
|
28
|
+
|
|
29
|
+
## Quick start
|
|
30
|
+
|
|
31
|
+
```ts
|
|
32
|
+
import { createNepalPayFromEnv, renderRedirectPage } from '@bijayx/nepal-pay';
|
|
33
|
+
|
|
34
|
+
const pay = createNepalPayFromEnv();
|
|
35
|
+
|
|
36
|
+
// 1. Start a payment
|
|
37
|
+
const payment = await pay.gateway('esewa').initiate({
|
|
38
|
+
amount: 150_000, // Rs 1,500 in paisa
|
|
39
|
+
orderId: 'ORD-1001-a1', // unique per payment attempt
|
|
40
|
+
orderName: 'Charging session',
|
|
41
|
+
returnUrl: 'https://example.com/payments/esewa/return',
|
|
42
|
+
});
|
|
43
|
+
await db.orders.update(order.id, { paymentReference: payment.reference });
|
|
44
|
+
res.type('html').send(renderRedirectPage(payment.redirect));
|
|
45
|
+
|
|
46
|
+
// 2. When the customer returns
|
|
47
|
+
const result = await pay.gateway('esewa').verify({
|
|
48
|
+
callback: req.query,
|
|
49
|
+
expected: { amount: order.amount, reference: order.paymentReference },
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
if (result.isPaid) {
|
|
53
|
+
// fulfil the order (idempotently, see the security checklist)
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Configuration
|
|
58
|
+
|
|
59
|
+
### From environment variables
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
NEPAL_PAY_ENV=sandbox # or production
|
|
63
|
+
NEPAL_PAY_DEFAULT=khalti # optional: gateway used by pay.gateway()
|
|
64
|
+
KHALTI_SECRET_KEY=... # "live secret key" from the Khalti merchant dashboard
|
|
65
|
+
KHALTI_WEBSITE_URL=https://example.com
|
|
66
|
+
ESEWA_PRODUCT_CODE=... # optional in sandbox (defaults to EPAYTEST)
|
|
67
|
+
ESEWA_SECRET_KEY=... # optional in sandbox (defaults to the public UAT key)
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
const pay = createNepalPayFromEnv(process.env, { timeoutMs: 10_000 });
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
A gateway without credentials is simply not configured. In sandbox mode eSewa is always available, using eSewa's public test credentials.
|
|
75
|
+
|
|
76
|
+
### Explicit
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
import { NepalPay } from '@bijayx/nepal-pay';
|
|
80
|
+
|
|
81
|
+
const pay = new NepalPay({
|
|
82
|
+
environment: 'production',
|
|
83
|
+
default: 'khalti',
|
|
84
|
+
http: { timeoutMs: 15_000, retries: 2, logger: console },
|
|
85
|
+
gateways: {
|
|
86
|
+
khalti: { secretKey: process.env.KHALTI_SECRET_KEY!, websiteUrl: 'https://example.com' },
|
|
87
|
+
esewa: {
|
|
88
|
+
productCode: process.env.ESEWA_PRODUCT_CODE!,
|
|
89
|
+
secretKey: process.env.ESEWA_SECRET_KEY!,
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Or use a single gateway directly:
|
|
96
|
+
|
|
97
|
+
```ts
|
|
98
|
+
import { KhaltiGateway } from '@bijayx/nepal-pay';
|
|
99
|
+
|
|
100
|
+
const khalti = new KhaltiGateway({ secretKey, websiteUrl: 'https://example.com' });
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
| Option | Default | Notes |
|
|
104
|
+
| --------------------------------------------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
105
|
+
| `environment` | `'sandbox'` | Production must be chosen explicitly. |
|
|
106
|
+
| `timeoutMs` | `15000` | Per attempt. |
|
|
107
|
+
| `retries` | `2` | Only for `lookup`/`verify` (read-only calls), on network errors and 5xx, with exponential backoff. `initiate` is never retried. |
|
|
108
|
+
| `retryDelayMs` | `200` | Backoff base. |
|
|
109
|
+
| `fetch` | global `fetch` | Inject for proxies, tracing or tests. |
|
|
110
|
+
| `logger` | none | Any object with `debug` and `warn` (`console`, pino, winston). Logs method, URL without query string, status and duration only. |
|
|
111
|
+
| `baseUrl` (Khalti), `formUrl` / `statusUrl` (eSewa) | official URLs | Override for proxies or mocks. |
|
|
112
|
+
|
|
113
|
+
Missing or invalid configuration throws `ConfigurationError` as soon as the gateway is created, not in the middle of a checkout.
|
|
114
|
+
|
|
115
|
+
## The payment flow
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
Your server Customer's browser Gateway
|
|
119
|
+
─────────── ────────────────── ───────
|
|
120
|
+
initiate() ─── redirect ──────▶ Khalti: GET payment_url ───▶ pays
|
|
121
|
+
store reference + amount eSewa: POST signed form
|
|
122
|
+
│
|
|
123
|
+
verify() ◀── returnUrl?pidx=… / ?data=… ◀───────────────────────────┘
|
|
124
|
+
└─ lookup / status API (source of truth) ─────────────────────────▶
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
1. **Initiate** on your server. Compute the amount server-side, never from the browser.
|
|
128
|
+
2. **Persist** `payment.reference` and `payment.amount` on your order.
|
|
129
|
+
3. **Redirect.** Khalti uses a plain GET redirect; eSewa needs a form POST. `renderRedirectPage(payment.redirect)` handles both, or use `payment.redirect` to build your own.
|
|
130
|
+
4. **Verify** on your return URL with `expected` taken from your database. The library confirms the payment with the gateway's API; the callback's own status and amount are never trusted.
|
|
131
|
+
5. **Settle** the order once, using `result.isPaid`.
|
|
132
|
+
|
|
133
|
+
## API
|
|
134
|
+
|
|
135
|
+
### `initiate(input): Promise<InitiatedPayment>`
|
|
136
|
+
|
|
137
|
+
| Field | Type | |
|
|
138
|
+
| ------------- | ------------------------------------------- | ------------------------------------------------------------- |
|
|
139
|
+
| `amount` | `number` | Paisa, positive integer. Khalti minimum is 1000 (Rs 10). |
|
|
140
|
+
| `orderId` | `string` | Unique per attempt. 1–64 characters, letters, digits and `-`. |
|
|
141
|
+
| `orderName` | `string` | Shown on the gateway's page. |
|
|
142
|
+
| `returnUrl` | `string` | Absolute URL. |
|
|
143
|
+
| `failureUrl?` | `string` | eSewa only. Defaults to `returnUrl`. |
|
|
144
|
+
| `customer?` | `{ name?, email?, phone? }` | Sent to Khalti as `customer_info`. |
|
|
145
|
+
| `breakdown?` | `{ tax?, serviceCharge?, deliveryCharge? }` | Paisa. Parts of `amount`, not added to it. |
|
|
146
|
+
| `metadata?` | `Record<string, string>` | Khalti `merchant_*` fields; eSewa `properties[*]` (max 3). |
|
|
147
|
+
|
|
148
|
+
Returns `{ gateway, reference, orderId, amount, redirect, expiresAt, raw }`, where `redirect` is either `{ method: 'GET', url }` or `{ method: 'POST', url, fields }`.
|
|
149
|
+
|
|
150
|
+
Input is validated before any request, and every invalid field is reported at once in `ValidationError.fields`.
|
|
151
|
+
|
|
152
|
+
### `verify({ callback, expected? }): Promise<PaymentResult>`
|
|
153
|
+
|
|
154
|
+
- `callback`: the return request's query parameters (`req.query`, `Object.fromEntries(url.searchParams)`, ...).
|
|
155
|
+
- `expected`: `{ amount, reference? }` from your database. **Always pass it**: it turns on the amount and reference checks.
|
|
156
|
+
|
|
157
|
+
Khalti: reads `pidx` and confirms it through the lookup API.
|
|
158
|
+
eSewa: decodes `data`, verifies its HMAC signature and product code, then confirms through the status API. Without `data` (for example on `failureUrl`), it falls back to `expected`.
|
|
159
|
+
|
|
160
|
+
Non-completed payments are **returned**, not thrown. Fraud signals (bad signature, amount or reference mismatch) are **thrown**.
|
|
161
|
+
|
|
162
|
+
### `lookup({ reference, amount? }): Promise<PaymentResult>`
|
|
163
|
+
|
|
164
|
+
Re-checks a payment at any time, for example from a job that reconciles `pending` orders. eSewa requires `amount`.
|
|
165
|
+
|
|
166
|
+
### `PaymentResult`
|
|
167
|
+
|
|
168
|
+
```ts
|
|
169
|
+
{
|
|
170
|
+
gateway: 'khalti' | 'esewa' | string;
|
|
171
|
+
status: PaymentStatus;
|
|
172
|
+
isPaid: boolean; // status === 'completed'
|
|
173
|
+
reference: string; // pidx / transaction_uuid
|
|
174
|
+
transactionId: string | null;
|
|
175
|
+
amount: number; // paisa, as confirmed by the gateway
|
|
176
|
+
fee: number | null; // paisa (Khalti only)
|
|
177
|
+
raw: unknown; // gateway response, for debugging
|
|
178
|
+
}
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
## Statuses
|
|
182
|
+
|
|
183
|
+
| `status` | Khalti | eSewa | What to do |
|
|
184
|
+
| -------------------- | ------------------ | -------------- | -------------------------------------------- |
|
|
185
|
+
| `completed` | Completed | COMPLETE | Fulfil the order. |
|
|
186
|
+
| `pending` | Pending | PENDING | Hold; check again later with `lookup()`. |
|
|
187
|
+
| `initiated` | Initiated | | Customer has not paid yet. |
|
|
188
|
+
| `ambiguous` | | AMBIGUOUS | Hold; check again later. |
|
|
189
|
+
| `refunded` | Refunded | FULL_REFUND | Do not fulfil. |
|
|
190
|
+
| `partially_refunded` | Partially Refunded | PARTIAL_REFUND | Review manually. |
|
|
191
|
+
| `expired` | Expired | | Let the customer retry with a new `orderId`. |
|
|
192
|
+
| `canceled` | User canceled | CANCELED | Let the customer retry. |
|
|
193
|
+
| `failed` | Failed | | Let the customer retry. |
|
|
194
|
+
| `not_found` | not found | NOT_FOUND | Unknown or abandoned payment. |
|
|
195
|
+
| `unknown` | anything else | anything else | Inspect `raw`; hold the order. |
|
|
196
|
+
|
|
197
|
+
## Errors
|
|
198
|
+
|
|
199
|
+
Every error extends `NepalPayError` and has a stable `code`, a `gateway` and safe-to-log `details`. Use `instanceof` or `error.code`.
|
|
200
|
+
|
|
201
|
+
| Class | `code` | Meaning | Typical response |
|
|
202
|
+
| ----------------------- | --------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------ |
|
|
203
|
+
| `ConfigurationError` | `CONFIGURATION_ERROR` | Missing or invalid config, unknown gateway. | Fix deployment. |
|
|
204
|
+
| `ValidationError` | `VALIDATION_ERROR` | Invalid input, or the gateway rejected fields. See `.fields`. | 422 |
|
|
205
|
+
| `AuthenticationError` | `AUTHENTICATION_FAILED` | Wrong secret key, or a sandbox key used in production (or the other way round). | Fix config, alert. |
|
|
206
|
+
| `GatewayError` | `GATEWAY_ERROR` | Unexpected response or 5xx. `.statusCode`, `.responseBody`, `.retryable`. | 503, retry later. |
|
|
207
|
+
| `NetworkError` | `NETWORK_ERROR`, `TIMEOUT` | No response. | 503, retry later. |
|
|
208
|
+
| `InvalidCallbackError` | `INVALID_CALLBACK` | Return URL is missing parameters or they cannot be decoded. | 400 |
|
|
209
|
+
| `InvalidSignatureError` | `INVALID_SIGNATURE` | eSewa data was altered or is for another merchant. | 400, **alert**. |
|
|
210
|
+
| `PaymentMismatchError` | `AMOUNT_MISMATCH`, `REFERENCE_MISMATCH` | Gateway confirmed a different payment than expected. `.expected`, `.actual`. | 400, **do not fulfil, alert**. |
|
|
211
|
+
|
|
212
|
+
```ts
|
|
213
|
+
import { ErrorCode, NepalPayError } from '@bijayx/nepal-pay';
|
|
214
|
+
|
|
215
|
+
try {
|
|
216
|
+
await gateway.verify({ callback, expected });
|
|
217
|
+
} catch (error) {
|
|
218
|
+
if (error instanceof NepalPayError && error.code === ErrorCode.AMOUNT_MISMATCH) {
|
|
219
|
+
alertSecurityTeam(error.toJSON());
|
|
220
|
+
}
|
|
221
|
+
throw error;
|
|
222
|
+
}
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
## Framework examples
|
|
226
|
+
|
|
227
|
+
### Express
|
|
228
|
+
|
|
229
|
+
A complete app (checkout, return route, idempotent settlement, central error handler) is in [`examples/express`](examples/express).
|
|
230
|
+
|
|
231
|
+
### Next.js (App Router)
|
|
232
|
+
|
|
233
|
+
```ts
|
|
234
|
+
// app/payments/[gateway]/return/route.ts
|
|
235
|
+
import { NextResponse, type NextRequest } from 'next/server';
|
|
236
|
+
import { pay } from '@/lib/payments'; // createNepalPayFromEnv()
|
|
237
|
+
|
|
238
|
+
export async function GET(
|
|
239
|
+
request: NextRequest,
|
|
240
|
+
{ params }: { params: Promise<{ gateway: string }> },
|
|
241
|
+
) {
|
|
242
|
+
const { gateway } = await params;
|
|
243
|
+
const order = await getOrder(request.nextUrl.searchParams.get('order'));
|
|
244
|
+
|
|
245
|
+
const result = await pay.gateway(gateway).verify({
|
|
246
|
+
callback: Object.fromEntries(request.nextUrl.searchParams),
|
|
247
|
+
expected: { amount: order.amount, reference: order.paymentReference },
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
if (result.isPaid) await markOrderPaidOnce(order.id);
|
|
251
|
+
return NextResponse.redirect(new URL(`/orders/${order.id}`, request.url));
|
|
252
|
+
}
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
For eSewa checkout from a route handler, return the redirect page:
|
|
256
|
+
|
|
257
|
+
```ts
|
|
258
|
+
return new Response(renderRedirectPage(payment.redirect), {
|
|
259
|
+
headers: { 'content-type': 'text/html' },
|
|
260
|
+
});
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
### NestJS
|
|
264
|
+
|
|
265
|
+
Register one `NepalPay` instance as a provider (`useFactory: () => createNepalPayFromEnv()`) and inject it into your payments service.
|
|
266
|
+
|
|
267
|
+
## Security checklist
|
|
268
|
+
|
|
269
|
+
- **Verify server-side.** Never mark an order paid because the return URL says `status=Completed`.
|
|
270
|
+
- **Store `reference` and `amount` at initiate time** and pass them as `expected` to `verify()`.
|
|
271
|
+
- **Settle idempotently.** Return URLs can be hit twice (refresh, back button, retries). Use a conditional update (`UPDATE orders SET status='paid' WHERE id=? AND status='pending'`) or a row lock.
|
|
272
|
+
- **Use a fresh `orderId` per attempt.** Both gateways reject reused IDs. `ORD-1001-a1`, `ORD-1001-a2`, and so on.
|
|
273
|
+
- **Compute amounts on the server.** Never accept a price from the browser.
|
|
274
|
+
- **Keep keys server-side** in environment variables. Never ship them to the browser or commit them.
|
|
275
|
+
- **Reconcile.** Run a job that calls `lookup()` for orders stuck in `pending`/`ambiguous`, because customers sometimes close the tab before returning.
|
|
276
|
+
|
|
277
|
+
## Sandbox credentials
|
|
278
|
+
|
|
279
|
+
**Khalti**
|
|
280
|
+
|
|
281
|
+
- Merchant sign-up: <https://test-admin.khalti.com/#/join/merchant> (OTP `987654`). Copy the "live secret key" from the sandbox dashboard into `KHALTI_SECRET_KEY`.
|
|
282
|
+
- Test payer: Khalti ID `9800000000` to `9800000005`, MPIN `1111`, OTP `987654`.
|
|
283
|
+
|
|
284
|
+
**eSewa**
|
|
285
|
+
|
|
286
|
+
- No sign-up needed. Product code `EPAYTEST` and the UAT secret key are built in for `environment: 'sandbox'`.
|
|
287
|
+
- Test payer: eSewa ID `9711111111`, `9711111112` or `9711111113`, password `Nepal@123`, MPIN `1122`, token `123456`.
|
|
288
|
+
|
|
289
|
+
For production, request merchant credentials from each gateway. Signing up is free; they charge a fee per transaction.
|
|
290
|
+
|
|
291
|
+
## Custom gateways
|
|
292
|
+
|
|
293
|
+
Implement `PaymentGateway` (or extend `BaseGateway` to get the shared HTTP client and fraud checks) and register it:
|
|
294
|
+
|
|
295
|
+
```ts
|
|
296
|
+
const pay = new NepalPay({
|
|
297
|
+
gateways: { fonepay: { merchantCode: 'M1', secretKey: '...' } },
|
|
298
|
+
}).extend('fonepay', (options) => new FonepayGateway(options));
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
## Testing your app
|
|
302
|
+
|
|
303
|
+
Inject `fetch` to keep tests offline:
|
|
304
|
+
|
|
305
|
+
```ts
|
|
306
|
+
const fetch = async () =>
|
|
307
|
+
new Response(
|
|
308
|
+
JSON.stringify({ pidx: 'p1', total_amount: 150000, status: 'Completed', transaction_id: 't1' }),
|
|
309
|
+
);
|
|
310
|
+
|
|
311
|
+
const khalti = new KhaltiGateway({ secretKey: 'test', websiteUrl: 'https://example.test', fetch });
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
## Contributing
|
|
315
|
+
|
|
316
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md). Report security issues privately as described in [SECURITY.md](SECURITY.md).
|
|
317
|
+
|
|
318
|
+
## License
|
|
319
|
+
|
|
320
|
+
MIT © Bijay Shrestha
|