From f4ce0c700779e7ee95f42b14a0699c0afd37aa19 Mon Sep 17 00:00:00 2001 From: "Daniel D. Beck" Date: Fri, 19 Jul 2024 16:27:59 +0200 Subject: [PATCH] Document Node.js-less web-features import --- packages/web-features/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/web-features/README.md b/packages/web-features/README.md index ade41044199..2cc8a25ee54 100644 --- a/packages/web-features/README.md +++ b/packages/web-features/README.md @@ -12,6 +12,16 @@ npm install web-features import { features, groups, snapshots } from "web-features"; ``` +Or, without Node.js: + +```js +import { + features, + groups, + snapshots, +} from "web-features/data.json" with { type: "json" }; +``` + ## Rendering Baseline statuses with `web-features` 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.