📄️ Node.js (Modern ES Modules)
For Node.js or modern JavaScript frameworks (e.g., React, Vue, Vite, Webpack), install via your preferred package manager:
📄️ CommonJS (Older Node.js)
For older Node.js versions or projects using CommonJS modules, install via your preferred package manager:
📄️ Browser Usage with Bundlers
If you are building web applications using bundlers like Vite, Webpack, or Rollup, you can install and import lunex-http as a module. Your bundler will handle packaging the library for browser compatibility.
📄️ Native ES Modules in Browsers (Without Bundlers)
If you want to use lunex-http directly in modern browsers without a bundler, you can import it from an ESM CDN like esm.sh. This approach leverages native ES module support in browsers.
📄️ UMD Build (CDN and Local)
If your project does not use a bundler or support ES modules, you can use the UMD build of lunex-http directly in the browser via a CDN or by hosting the script locally.