Skip to content

Commit

Permalink
docs: fix examples (#13)
Browse files Browse the repository at this point in the history
* docs: fix examples

* docs: improve indentation
  • Loading branch information
wellwelwel authored Aug 20, 2024
1 parent 6049df6 commit 6aecc37
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@

> Many _JSON_ minification packages rely on vulnerable _regex_, making them unsuitable for production.
<img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/jsonc.min/main/.github/assets/readme/check.svg"> **jsonc.min** prioritizes security by avoiding these pitfalls and offering a robust solution.
<span>&nbsp;&nbsp;&nbsp;&nbsp;</span><img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/jsonc.min/main/.github/assets/readme/check.svg"> **jsonc.min** prioritizes security by avoiding these pitfalls and offering a robust solution.

#### 🤝 Compatibility

<img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/jsonc.min/main/.github/assets/readme/check.svg"> **jsonc.min** ensures full compatibility with both **Node.js**, **Bun**, **Deno** and, browser environments.<br />
<img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/jsonc.min/main/.github/assets/readme/check.svg"> All features work for both _JSON_ and _JSONC_.
<span>&nbsp;&nbsp;&nbsp;&nbsp;</span><img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/jsonc.min/main/.github/assets/readme/check.svg"> **jsonc.min** ensures full compatibility with both **Node.js**, **Bun**, **Deno** and, browser environments.<br />
<span>&nbsp;&nbsp;&nbsp;&nbsp;</span><img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/jsonc.min/main/.github/assets/readme/check.svg"> All features work for both _JSON_ and _JSONC_.

#### 🪶 Lightweight

<img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/jsonc.min/main/.github/assets/readme/check.svg"> Zero dependencies and optimized for production environments.
<span>&nbsp;&nbsp;&nbsp;&nbsp;</span><img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/jsonc.min/main/.github/assets/readme/check.svg"> Zero dependencies and optimized for production environments.

---

Expand Down Expand Up @@ -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 {};
}
};
```
Expand Down

0 comments on commit 6aecc37

Please sign in to comment.