web-features 0.10.0 → 1.0.0-dev-20240719160732-c0797be
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 +13 -0
- package/data.json +1 -0
- package/data.schema.json +228 -0
- package/index.d.ts +0 -2
- package/index.js +1 -1
- package/package.json +5 -3
- package/index.json +0 -1
package/README.md
CHANGED
|
@@ -12,6 +12,19 @@ npm install web-features
|
|
|
12
12
|
import { features, groups, snapshots } from "web-features";
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
+
Or, without Node.js:
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
import data from "web-features/data.json" with { type: "json" };
|
|
19
|
+
const { features, groups, snapshots } = data;
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
To import the JSON schema with or without Node.js:
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
import schema from "web-features/data.schema.json" with { type: "json" };
|
|
26
|
+
```
|
|
27
|
+
|
|
15
28
|
## Rendering Baseline statuses with `web-features`
|
|
16
29
|
|
|
17
30
|
If you're using `web-features` to render Baseline iconography or browser logos with support markers, then you must follow these procedures to ensure consistent usage.
|