Skip to content

Commit

Permalink
Update from-npm-install-to-bun-install.md
Browse files Browse the repository at this point in the history
Jarred-Sumner committed Sep 22, 2024
1 parent 60d8c8a commit 1eab8ec
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/guides/install/from-npm-install-to-bun-install.md
Original file line number Diff line number Diff line change
@@ -31,12 +31,12 @@ $ bun rm @types/bun

Run scripts from package.json, executables from `node_modules/.bin` (sort of like `npx`), and JavaScript/TypeScript files (just like `node`) - all from a single simple command.

| NPM | Bun |
| ---------------- | ---------------- |
| `npm <script>` | `bun <script>` |
| `npm exec <bin>` | `bun run <bin>` |
| `npx <package>` | `bunx <package>` |
| `node <file>` | `bun <file>` |
| NPM | Bun |
| ------------------ | ---------------- |
| `npm run <script>` | `bun <script>` |
| `npm exec <bin>` | `bun <bin>` |
| `node <file>` | `bun <file>` |
| `npx <package>` | `bunx <package>` |

When you use `bun run <executable>`, it will choose the locally-installed executable

0 comments on commit 1eab8ec

Please sign in to comment.