Skip to content

Commit ad92b15

Browse files
authored
Document Node.js-less web-features import (#1471)
1 parent ff67993 commit ad92b15

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/web-features/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ npm install web-features
1212
import { features, groups, snapshots } from "web-features";
1313
```
1414

15+
Or, without Node.js:
16+
17+
```js
18+
import {
19+
features,
20+
groups,
21+
snapshots,
22+
} from "web-features/data.json" with { type: "json" };
23+
```
24+
1525
## Rendering Baseline statuses with `web-features`
1626

1727
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.

0 commit comments

Comments
 (0)