@well-known-js/core 1.0.0 → 1.0.1
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 +35 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# @well-known-js/core
|
|
2
|
+
|
|
3
|
+
Shared types and configuration helpers for the `@well-known-js` ecosystem.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
pnpm add @well-known-js/core
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
Create a `well-known.config.ts` file and register one or more providers:
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { defineConfig } from "@well-known-js/core";
|
|
17
|
+
import { assetLinks } from "@well-known-js/assetlinks";
|
|
18
|
+
|
|
19
|
+
export default defineConfig({
|
|
20
|
+
providers: [
|
|
21
|
+
assetLinks({
|
|
22
|
+
statements: [{ include: "https://example.com/.well-known/assetlinks.json" }],
|
|
23
|
+
}),
|
|
24
|
+
],
|
|
25
|
+
});
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
`defineConfig()` validates that provider routes are unique and preserves full TypeScript inference.
|
|
29
|
+
|
|
30
|
+
## Providers
|
|
31
|
+
|
|
32
|
+
- [`@well-known-js/apple-app-site-association`](https://www.npmjs.com/package/@well-known-js/apple-app-site-association)
|
|
33
|
+
- [`@well-known-js/assetlinks`](https://www.npmjs.com/package/@well-known-js/assetlinks)
|
|
34
|
+
|
|
35
|
+
[GitHub](https://github.com/louchebem06/well-known) · [Documentation](https://github.com/louchebem06/well-known#readme)
|