From ec83791afcf18c89569d384b3ab7899b5d8165a2 Mon Sep 17 00:00:00 2001 From: Sven Minio Date: Sun, 17 May 2026 20:01:19 +0200 Subject: [PATCH] Add Installation --- Installation.md | 70 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Installation.md diff --git a/Installation.md b/Installation.md new file mode 100644 index 0000000..323fc79 --- /dev/null +++ b/Installation.md @@ -0,0 +1,70 @@ +## 1. Browser (Legacy / Static) +Download the [jbase.min.js](/k37z3r/jBase-2/releases/latest/download/jbase.min.js) file, upload it to your server, and include it in your HTML. + +```html + + + +``` + +-- OR -- + +via CDN +```html + + + + + + + + + + + + + + + +``` + +--- + +## 2. Node.js / Bundlers (Webpack, Vite, Rollup) **coming soon** + +If you are using a modern stack or server-side rendering (SSR), you can import jBase as a module. + +```bash +npm install @k37z3r/jbase +# or +yarn add @k37z3r/jbase + +``` + +**Usage in TypeScript/ESM:** + +```typescript +import { $ } from 'jbase'; + +// Use as usual +$('.element').addClass('active'); + +``` + +**Usage in CommonJS (Node.js require):** + +```javascript +const { $ } = require('jbase'); +$('.element').addClass('active'); + +``` \ No newline at end of file