diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d64f21a --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +# Node +node_modules +.npmrc +test.js +package-lock.json + +# Deno +deno.lock + +# Generic +test.js \ No newline at end of file diff --git a/README.md b/README.md index 5e64c5d..b43ab14 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,6 @@ This package provides a robust, cross runtime, way to determine the current runtime environment (Deno, Bun, Node.js, or browser) along with detailed browser detection. -**Installation** - -Refer to the installation instructions on the official JSR documentation: [invalid URL removed] - **Usage Example** ```javascript @@ -19,6 +15,8 @@ console.log(`Version: ${CurrentVersion}`); if (CurrentRuntime == Runtime.Deno) { console.log("You're running Deno!"); +} else { + console.log("You're not running Deno!"); } ``` @@ -26,8 +24,3 @@ if (CurrentRuntime == Runtime.Deno) { For comprehensive documentation, including more advanced usage and examples, please visit the official JSR documentation (if your are not already there): [https://jsr.io/@cross/runtime](https://jsr.io/@cross/runtime). - -**Why Choose @cross/runtime?** - -If you need reliable and flexible runtime detection across different JavaScript and TypeScript environments, `@cross/runtime` is an excellent choice. It's actively maintained, supports all -environments, minimal and free from dependencies. diff --git a/deno.json b/deno.json index 92e006b..c2d91db 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@cross/runtime", - "version": "0.0.9", + "version": "0.0.10", "exports": "./mod.ts", "fmt": { "lineWidth": 200 diff --git a/deno.lock b/deno.lock deleted file mode 100644 index b529284..0000000 --- a/deno.lock +++ /dev/null @@ -1,21 +0,0 @@ -{ - "version": "3", - "packages": { - "specifiers": { - "jsr:@std/assert": "jsr:@std/assert@0.218.2", - "jsr:@std/fmt@^0.218.2": "jsr:@std/fmt@0.218.2" - }, - "jsr": { - "@std/assert@0.218.2": { - "integrity": "7f0a5a1a8cf86607cd6c2c030584096e1ffad27fc9271429a8cb48cfbdee5eaf", - "dependencies": [ - "jsr:@std/fmt@^0.218.2" - ] - }, - "@std/fmt@0.218.2": { - "integrity": "99526449d2505aa758b6cbef81e7dd471d8b28ec0dcb1491d122b284c548788a" - } - } - }, - "remote": {} -}