@allratestoday/sdk 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -2
- package/package.json +11 -4
package/README.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
# @allratestoday/sdk
|
|
1
|
+
# Exchange Rate API — @allratestoday/sdk
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@allratestoday/sdk)
|
|
4
|
+
[](https://codecov.io/gh/allratestoday/exchange-rates-api)
|
|
4
5
|
[](https://github.com/allratestoday/exchange-rates-api/blob/main/LICENSE)
|
|
5
6
|
[](https://www.typescriptlang.org/)
|
|
6
7
|
[](https://www.npmjs.com/package/@allratestoday/sdk)
|
|
7
8
|
|
|
8
|
-
**
|
|
9
|
+
**Real-time mid-market currency exchange rates for Node.js and browsers. The most elegant way to access 160+ currencies from Reuters/Refinitiv.**
|
|
9
10
|
|
|
10
11
|
## Why Choose This Client?
|
|
11
12
|
|
|
@@ -471,6 +472,28 @@ console.log({ labels, values });
|
|
|
471
472
|
|
|
472
473
|
---
|
|
473
474
|
|
|
475
|
+
## Testing
|
|
476
|
+
|
|
477
|
+
Run isolated unit tests (no API calls needed):
|
|
478
|
+
|
|
479
|
+
```bash
|
|
480
|
+
npm test
|
|
481
|
+
```
|
|
482
|
+
|
|
483
|
+
Run tests with coverage report:
|
|
484
|
+
|
|
485
|
+
```bash
|
|
486
|
+
npm run test:coverage
|
|
487
|
+
```
|
|
488
|
+
|
|
489
|
+
Watch mode for development:
|
|
490
|
+
|
|
491
|
+
```bash
|
|
492
|
+
npm run test:watch
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
---
|
|
496
|
+
|
|
474
497
|
## Pricing
|
|
475
498
|
|
|
476
499
|
| Plan | Requests/Month | Price |
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/sdk",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.3.2",
|
|
4
|
+
"description": "Exchange Rate API — Real-time mid-market currency exchange rates for Node.js and browsers. 160+ currencies from Reuters/Refinitiv, zero dependencies, free tier.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
9
11
|
"exports": {
|
|
10
12
|
".": {
|
|
11
13
|
"types": "./dist/index.d.ts",
|
|
@@ -15,6 +17,9 @@
|
|
|
15
17
|
},
|
|
16
18
|
"scripts": {
|
|
17
19
|
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
20
|
+
"test": "vitest run",
|
|
21
|
+
"test:watch": "vitest",
|
|
22
|
+
"test:coverage": "vitest run --coverage",
|
|
18
23
|
"prepublishOnly": "npm run build"
|
|
19
24
|
},
|
|
20
25
|
"keywords": [
|
|
@@ -36,7 +41,9 @@
|
|
|
36
41
|
"directory": "sdks/javascript"
|
|
37
42
|
},
|
|
38
43
|
"devDependencies": {
|
|
44
|
+
"@vitest/coverage-v8": "^4.1.4",
|
|
39
45
|
"tsup": "^8.0.0",
|
|
40
|
-
"typescript": "^5.0.0"
|
|
46
|
+
"typescript": "^5.0.0",
|
|
47
|
+
"vitest": "^4.1.4"
|
|
41
48
|
}
|
|
42
49
|
}
|