Skip to content

Commit

Permalink
feat: change to bun
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarneo committed Sep 19, 2023
1 parent 3f766b9 commit 1d462af
Show file tree
Hide file tree
Showing 7 changed files with 117 additions and 108 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ Both the browser and nodejs.
$ npm i --save extract-domain
```

### Development

```
# Install bun https://bun.sh/
curl -fsSL https://bun.sh/install | bash
# tests
bun test:watch
```

### API

- @param {Urls} urls ["https://www.google.com", "https://www.github.com"] or "https://www.google.com"
Expand Down Expand Up @@ -94,19 +105,19 @@ Please note that using the tld flag may significantly slow down the process. Ben
## Tests

```bash
$ npm test
$ bun test
```

## Coding style

```bash
$ npm run pretty
$ bun pretty
```

## Benchmark

```bash
npm run benchmark
bun benchmark
```

## Contribution
Expand Down
Binary file added bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/extract-domain.cjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1d462af

Please sign in to comment.