@jeengbe/prelude 0.1.4 → 0.1.5
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 +15 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,6 +16,17 @@ It provides an `Either` type for representing a value that's either a success or
|
|
|
16
16
|
|
|
17
17
|
The package is published to [npm](https://www.npmjs.com/package/@jeengbe/prelude) and [JSR](https://jsr.io/@jeengbe/prelude) as `@jeengbe/prelude`. Versions follow Semantic Versioning.
|
|
18
18
|
|
|
19
|
+
```bash
|
|
20
|
+
npm install @jeengbe/prelude
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pnpm add @jeengbe/prelude
|
|
25
|
+
yarn add @jeengbe/prelude
|
|
26
|
+
bun add @jeengbe/prelude
|
|
27
|
+
deno add jsr:@jeengbe/prelude
|
|
28
|
+
```
|
|
29
|
+
|
|
19
30
|
## Usage
|
|
20
31
|
|
|
21
32
|
### `Either`
|
|
@@ -133,3 +144,7 @@ matchPair([error, value], {
|
|
|
133
144
|
both: (e, v) => `error ${e}, but got a partial value: ${v}`,
|
|
134
145
|
});
|
|
135
146
|
```
|
|
147
|
+
|
|
148
|
+
## License
|
|
149
|
+
|
|
150
|
+
[MIT](LICENSE) Jesper Engberg
|