From 6aecc371f61ee45c1cd6e369d9d46f50f2c6c270 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Weslley=20Ara=C3=BAjo?=
<46850407+wellwelwel@users.noreply.github.com>
Date: Tue, 20 Aug 2024 19:29:46 -0300
Subject: [PATCH] docs: fix examples (#13)
* docs: fix examples
* docs: improve indentation
---
README.md | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index 1ca6ffa..93f22f6 100644
--- a/README.md
+++ b/README.md
@@ -16,16 +16,16 @@
> Many _JSON_ minification packages rely on vulnerable _regex_, making them unsuitable for production.
-
**jsonc.min** prioritizes security by avoiding these pitfalls and offering a robust solution.
+
**jsonc.min** prioritizes security by avoiding these pitfalls and offering a robust solution.
#### 🤝 Compatibility
-
**jsonc.min** ensures full compatibility with both **Node.js**, **Bun**, **Deno** and, browser environments.
-
All features work for both _JSON_ and _JSONC_.
+
**jsonc.min** ensures full compatibility with both **Node.js**, **Bun**, **Deno** and, browser environments.
+
All features work for both _JSON_ and _JSONC_.
#### 🪶 Lightweight
-
Zero dependencies and optimized for production environments.
+
Zero dependencies and optimized for production environments.
---
@@ -210,9 +210,9 @@ export const getConfigs = async (customPath?: string) => {
// jsonc.min will parse both JSON and JSONC extensions, even if there is no extension.
return JSONC.parse(configsFile);
- } catch {
- return {};
- }
+ } catch {}
+
+ return {};
}
};
```