From 48cba0f8a929b912fce31a909ce490d718994198 Mon Sep 17 00:00:00 2001 From: Jose Joya Date: Wed, 2 Oct 2024 16:38:43 -0500 Subject: [PATCH] fix(docs): Updated localFlags feature list api to match with the current Implementation --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ca2d5a3..39e4f63 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,8 @@ const localFlags = setupLocalFlags({ // in your application or in the browser console localFlags.enableFeature('calendarView'); // use this to enable a feature. localFlags.disableFeature('calendarView'); // use this to disable a feature. -localFlags.featureList(); // use this to list all features. +console.log(localFlags.featureList.toString()); // use this to get a list of all features in String format. +console.log(localFlags.featureList.toJSON()); // use this to get a list of all features in JSON format. localFlags.isFeatureEnabled('calendarView'); // use this to check if a feature is enabled. ```