Skip to content

Commit eb36c67

Browse files
committed
xFix badges
1 parent 2826741 commit eb36c67

1 file changed

Lines changed: 43 additions & 2 deletions

File tree

README.md

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## @cross/runtime
22

3+
[![JSR Version](https://jsr.io/badges/@cross/runtime?v=bust)](https://jsr.io/@cross/runtime) [![JSR Score](https://jsr.io/badges/@cross/runtime/score?v=bust)](https://jsr.io/@cross/runtime/score)
4+
35
**Cross-Runtime Environment Detection for JavaScript and TypeScript**
46

57
This package provides a well defined, cross runtime, way to determine details about the current runtime environment (Deno, Bun, Node.js, or browser) along with detailed browser detection.
@@ -41,6 +43,45 @@ Version: 1.0.30
4143
You're not running Deno!
4244
```
4345

44-
**Full Documentation and Installation Instructions**
46+
### Documentation
47+
48+
**Installation**
49+
50+
```bash
51+
# Pick your runtime and package manager:
52+
npx jsr add @cross/runtime # Node.js
53+
deno add @cross/runtime # Deno
54+
bunx jsr add @cross/runtime # Bun
55+
```
56+
57+
### Supported Environments
58+
59+
**Runtimes**
60+
61+
* Deno
62+
* Bun
63+
* Node.js
64+
* Web browsers (Chrome, Firefox, Edge, Safari, Opera, Brave)
65+
* Edge Functions (Cloudflare Workers, Netlify Edge Functions, Fastly Compute@Edge)
66+
67+
**Operating Systems**
68+
69+
* Windows
70+
* macOS
71+
* Linux
72+
* Android
73+
* iOS
74+
* Less common Unix variants (AIX, FreeBSD, OpenBSD, etc.)
75+
76+
**Browsers**
77+
78+
* Chrome
79+
* Firefox
80+
* Edge
81+
* Safari
82+
* Opera
83+
* Brave
84+
85+
**Important Notes:**
4586

46-
For comprehensive documentation, including more advanced usage and examples, please visit the documentation at jsr.io (if your are not already there): [https://jsr.io/@cross/runtime](https://jsr.io/@cross/runtime).
87+
* **Additional Functionality:** Beyond detection, the `dumpSystemInfo` function logs the information, and the `getsystemInfo` function provides a JSON representation.

0 commit comments

Comments
 (0)