@cloudpss/fetch 0.6.15 → 0.6.16
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 +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
# @cloudpss/fetch
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Cross-platform `fetch` and `WebSocket` implementation and utilities used by CloudPSS SDKs.
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import fetch from '@cloudpss/fetch';
|
|
7
|
+
|
|
8
|
+
const res = await fetch('https://cloudpss.net/api');
|
|
9
|
+
const json = await res.json();
|
|
10
|
+
```
|