{"id":26939,"library":"esbuild-cli","title":"esbuild-cli","description":"esbuild-cli v0.0.1 provides a real-time esbuild wrapper for CLI applications, enabling fast bundling and transpilation with TypeScript support. It targets Node >=16 and focuses on interactive development workflows. As a very early release (0.0.x), it lacks maturity and should be used with caution. Key differentiators: real-time rebuilds and CLI integration, but alternatives like esbuild's own CLI or tools like tsx are more stable and feature-rich.","status":"active","version":"0.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/voraciousdev/kin-cli","tags":["javascript","cli","cli-dev","dev-env","esbuild","interactive","typescript"],"install":[{"cmd":"npm install esbuild-cli","lang":"bash","label":"npm"},{"cmd":"yarn add esbuild-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add esbuild-cli","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only package; require() will fail.","wrong":"const esbuildCli = require('esbuild-cli')","symbol":"default","correct":"import esbuildCli from 'esbuild-cli'"},{"note":"Named export for programmatic use.","wrong":null,"symbol":"build","correct":"import { build } from 'esbuild-cli'"},{"note":"Top-level CLI function.","wrong":null,"symbol":"cli","correct":"import { cli } from 'esbuild-cli'"}],"quickstart":{"code":"import { build } from 'esbuild-cli';\n\n// Example: bundle a TypeScript file for Node.js\nbuild({\n  entryPoints: ['./src/index.ts'],\n  outfile: './dist/index.js',\n  platform: 'node',\n  target: 'node16',\n  format: 'esm',\n  bundle: true,\n}).catch(err => {\n  console.error('Build failed:', err);\n  process.exit(1);\n});","lang":"typescript","description":"Basic usage of the build function to bundle a TypeScript entry point for Node.js. Note: requires Node >=16."},"warnings":[{"fix":"Lock to a specific version and test upgrades carefully.","message":"The package is at version 0.0.1; API surface is unstable and may change without notice.","severity":"gotcha","affected_versions":"<=0.0.1"},{"fix":"Use import syntax or dynamic import().","message":"ESM-only package; require() will throw ERR_REQUIRE_ESM.","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"Update Node.js to 16 or later.","message":"Node engine requirement is >=16; older versions cause runtime errors.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"","message":"No known deprecation as of version 0.0.1.","severity":"deprecated","affected_versions":""}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Change to import or use dynamic import().","cause":"Package is ESM-only, but used with require().","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module not supported"},{"fix":"Use import { build } from 'esbuild-cli' or import esbuildCli from 'esbuild-cli' then use esbuildCli.build().","cause":"Incorrect import of default export vs named export.","error":"TypeError: build is not a function"},{"fix":"Install esbuild as a dependency: npm install esbuild.","cause":"Missing peer dependency esbuild.","error":"Error: Cannot find module 'esbuild'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}