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