esbuild
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
@esbuild/aix-ppc64 | 0.19.12 | 3.63 MB | MIT | prod optional | |
@esbuild/android-arm64 | 0.19.12 | 3.76 MB | MIT | prod optional | |
@esbuild/android-arm | 0.19.12 | 2.99 MB | MIT | prod optional | |
@esbuild/android-x64 | 0.19.12 | 2.99 MB | MIT | prod optional | |
@esbuild/darwin-arm64 | 0.19.12 | 3.85 MB | MIT | prod optional | |
@esbuild/darwin-x64 | 0.19.12 | 4.01 MB | MIT | prod optional | |
@esbuild/freebsd-arm64 | 0.19.12 | 3.55 MB | MIT | prod optional | |
@esbuild/freebsd-x64 | 0.19.12 | 3.9 MB | MIT | prod optional | |
@esbuild/linux-arm64 | 0.19.12 | 3.55 MB | MIT | prod optional | |
@esbuild/linux-arm | 0.19.12 | 3.66 MB | MIT | prod optional | |
@esbuild/linux-ia32 | 0.19.12 | 3.65 MB | MIT | prod optional | |
@esbuild/linux-loong64 | 0.19.12 | 3.67 MB | MIT | prod optional | |
@esbuild/linux-mips64el | 0.19.12 | 3.31 MB | MIT | prod optional | |
@esbuild/linux-ppc64 | 0.19.12 | 3.48 MB | MIT | prod optional | |
@esbuild/linux-riscv64 | 0.19.12 | 3.63 MB | MIT | prod optional | |
@esbuild/linux-s390x | 0.19.12 | 3.76 MB | MIT | prod optional | |
@esbuild/linux-x64 | 0.19.12 | 3.9 MB | MIT | prod optional | |
@esbuild/netbsd-x64 | 0.19.12 | 3.89 MB | MIT | prod optional | |
@esbuild/openbsd-x64 | 0.19.12 | 3.9 MB | MIT | prod optional | |
@esbuild/sunos-x64 | 0.19.12 | 3.89 MB | MIT | prod optional | |
@esbuild/win32-arm64 | 0.19.12 | 3.61 MB | MIT | prod optional | |
@esbuild/win32-ia32 | 0.19.12 | 3.8 MB | MIT | prod optional | |
@esbuild/win32-x64 | 0.19.12 | 3.96 MB | MIT | prod optional |
Esbuild is an extremely fast JavaScript and CSS bundler and minifier. It plays a crucial role in optimizing web performance by bundling and minifying the CSS and JavaScript files. By doing this, Esbuild reduces the number of HTTP requests that a browser makes to a server, which makes websites load faster, improving not just user experience but SEO as well.
Using Esbuild begins with installing the package through npm with the command npm install esbuild
. With Esbuild installed, it can be used directly from the command line or within a JavaScript file by importing it and utilizing its API. Here's an example of how you can use Esbuild from the command line to bundle and minify a JavaScript file:
npx esbuild your-file.js --bundle --minify --sourcemap --outfile=bundled-and-minified.js
And this is how you can import and use Esbuild within a JavaScript file:
const esbuild = require('esbuild');
esbuild.build({
entryPoints: ['your-file.js'],
bundle: true,
minify: true,
sourcemap: true,
outfile: 'bundled-and-minified.js',
})
.catch(() => process.exit(1))
The complete and detailed documentation of Esbuild can be found on the official esbuild API document page. The repository's Github page at https://github.com/evanw/esbuild
also contains information and examples on how to utilize esbuild. You can get help, learn more about the tool, its complete features, and how to utilize them from these resources.