From 79eb8d9d78a5ddc42b83c2044b0049474a26f3ae Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Tue, 26 Oct 2021 17:12:22 -0700 Subject: Update README.md --- README.md | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 968e3f73f..7673bb81e 100644 --- a/README.md +++ b/README.md @@ -24,15 +24,21 @@ npm install -g bun-cli **JavaScript**: TODO -### Getting started - ## Using Bun as a task runner Instead of waiting 170ms for your npm client to start for each task, you wait 6ms for Bun. To use bun as a task runner, run `bun run` instead of `npm run`. -A package.json that looks like this: +```bash +# Instead of "npm run clean" +bun run clean + +# This also works +bun clean +``` + +Assuming a package.json with a `clean` command in `scripts`: ```json { @@ -43,15 +49,6 @@ A package.json that looks like this: } ``` -Can run: - -```bash -bun run clean - -# This also works -bun clean -``` - ## Using Bun with Next.js To create a new Next.js app with Bun: -- cgit v1.2.3