Skip to content

Commit

Permalink
add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Feb 15, 2024
1 parent 91d3693 commit b5f263b
Show file tree
Hide file tree
Showing 6 changed files with 423 additions and 11 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@

With Node.js, Deno or Bun there are so many JavaScript environments to choose from. However, nothing is as good as the browser environment. `bx` gives you an execution runtime for the browser.

For example, let's say you have a script like this:

```js
console.log(navigator.userAgent)
```

With `bx` you can easily run this script within different browser environments:

```sh
> echo "console.log(navigator.userAgent)" &> script.js
> npx bx ./script.js
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
```
Expand Down
Loading

0 comments on commit b5f263b

Please sign in to comment.