Explain npm scripts code
Paste the scripts from a package.json and Vibe explains what npm run dev, npm run build and the rest actually run, in what order, and where each command comes from.
Up to 1,500 characters (about 60 lines). Your code is sent to Unvibe and Anthropic to write the explanation. Don't paste keys or passwords. Common key formats are refused.
Vibe19 lines selected
Press Explain it for the sample, or paste your own code first.
What this npm scripts sample shows
- npm run
- Each entry under
scriptsis a name and a shell command.npm run buildruns thebuildline, andnpm runon its own listed every script.startandtestare special enough to have shortcuts:npm startandnpm testwork withoutrun, whilenpm run devneeds it. - pre and post
- A script named
preplus another script's name runs first.npm run buildprintedclean: removed dist/fromprebuild, thenbuild: wrote dist/app.js. Each step is announced with a>line, such as> shop@1.2.0 prebuild. - local tools
- npm puts the project's own
node_modules/.binfirst on the PATH while a script runs. Afternpm installadded ESLint 9.39.5, typingeslint --versionin the terminal gaveeslint: command not found, butnpm run lintfound it and, for a file with one stray variable, reported'unused' is assigned a value but never used. - chaining and exit codes
&&runs the next command only if the one before it succeeded. With a lint error,npm run checkstopped after ESLint with exit code 1 andnpm testnever ran; with the error fixed, lint passed and the test ran, exit code 0. That exit code is what CI checks.
Good to know
- Run with npm 11.10.1 on Node 25.7.0. Before
npm install,npm run lintstopped witheslint: command not foundand exit code 127: listing a tool in devDependencies isn't enough until it's installed. - npm passes the package's fields to scripts as environment variables:
npm run helloprintedshop v1.2.0from$npm_package_nameand$npm_package_version. npm run nopestopped withnpm error Missing script: "nope"and pointed tonpm runfor the list.
Watch out: Extra arguments for the script go after --. npm run hello -- --loud ran echo ... --loud and printed shop v1.2.0 --loud, but npm test --watch without the -- gave the flag to npm itself: npm warn Unknown cli config "--watch", and node --test ran without it.
Explain npm scripts code beside your editor
Unvibe is a free app for Mac and Windows. In the app there is no pasting: select code in any app and press Control+U (Ctrl+Alt+U on Windows).
Install on Mac
curl -fsSL https://unvibe.site/install.sh | bashPaste into Terminal. Unvibe isn't notarized by Apple yet, so this is the smooth path.
Or download the .dmg · Intel Mac build · SHA-256 checksums
Opening the .dmg the first time
- Open the .dmg and drag Unvibe to Applications.
- Open it once; macOS says it can't verify it. Click Done.

Real screen, macOS 15 - System Settings › Privacy & Security › Open Anyway. Confirm, then enter your Mac password. The button shows for about an hour after you try to open Unvibe.

Real screen, macOS 15
The Terminal line checks the download against the published SHA-256 and Unvibe's self-signed signature before it installs anything. More help with the first open