tiny-ok-message 0.9.0 → 0.11.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/README.md +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|

|
|
8
8
|
|
|
9
9
|
# tiny-ok-message
|
|
10
|
+
|
|
10
11
|
⚗️ An intentionally small, fetch-based package that is useful for quick API-client experiments. Experimental Package: primarily used for learning purposes.
|
|
11
12
|
|
|
12
13
|
### 📦 Installation
|
|
@@ -24,16 +25,17 @@ npm install tiny-ok-message
|
|
|
24
25
|
5. TypeScript ready with generated declaration files
|
|
25
26
|
6. ESM package output through `dist`
|
|
26
27
|
7. Unit tested with Jest and `ts-jest`
|
|
28
|
+
8. Github Actions are used for performing trusted publish
|
|
27
29
|
|
|
28
30
|
### 🔤 Example Usage
|
|
29
31
|
|
|
30
32
|
```ts
|
|
31
33
|
/* node modules */
|
|
32
|
-
import { getOkMessage } from
|
|
34
|
+
import { getOkMessage } from "tiny-ok-message";
|
|
33
35
|
|
|
34
36
|
/* example */
|
|
35
37
|
async function run() {
|
|
36
|
-
const response = await getOkMessage({ message:
|
|
38
|
+
const response = await getOkMessage({ message: "hello world" });
|
|
37
39
|
console.log(response);
|
|
38
40
|
}
|
|
39
41
|
await run();
|