Automatically installs npm dependencies as you write import/require statements in your code.
Auto-install is a command-line tool that automatically installs npm or yarn dependencies when you save files containing import or require statements. It detects new dependencies in your code and runs the appropriate install command, eliminating the need to manually run `npm install` or `yarn add` each time you add a package.
JavaScript and Node.js developers who frequently add new dependencies during development and want to streamline their workflow.
It saves time by automating dependency installation, reduces context switching, and integrates seamlessly into existing npm/yarn workflows with additional security and customization options.
Install dependencies as you code ⚡️
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Installs npm or yarn packages automatically on file save when new import or require statements are detected, eliminating manual 'npm install' commands. This is core to its 'just hit save' philosophy as shown in the demo GIF.
Automatically categorizes modules imported in .spec.js and .test.js files as devDependencies, streamlining test setup without extra configuration.
Offers flags like --secure to install only popular modules (>10k monthly downloads), --exact for precise versioning, and --dont-uninstall to prevent cleanup, providing flexibility and reducing typosquatting risks.
Works with both npm and yarn via the --yarn flag, allowing seamless workflow switching without changing habits.
Only supports npm and yarn, excluding newer alternatives like pnpm or bun, which may restrict use in diverse or modern JavaScript ecosystems.
Triggers on any file save, so typos or temporary imports in code can lead to unnecessary package installs, causing clutter or security issues if --secure isn't used.
Requires running the tool continuously in the terminal, which may consume system resources and interfere with other CLI operations, unlike integrated IDE features.