Skip to content

Commit

Permalink
BREAKING CHANGE: bundle as ESM only (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarneo committed Apr 9, 2024
1 parent cd529e4 commit 38ccfea
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 28 deletions.
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Learn more about [What is a URL](https://developer.mozilla.org/en-US/docs/Learn/

## Supports

Both the browser and nodejs.
- ESM
- Node.js
- Browser

## Usage

Expand All @@ -35,22 +37,12 @@ bun test:watch
- @param {GetDomainOptions} opts `{ tld: true }` permit to get Top Level Domain like `*.co.uk`
- @returns {Urls | Promise<Urls>} Returns URL(s) or a promise of URL(s) if the PSL lib is being used

```js
const res = extractDomain(urls, options);
```

ES6 Import
ESM import

```js
import extractDomain from 'extract-domain';
```

CommonJS Require

```js
const extractDomain = require('extract-domain');
```

Examples

```js
Expand Down
2 changes: 0 additions & 2 deletions dist/extract-domain.cjs

This file was deleted.

1 change: 0 additions & 1 deletion dist/extract-domain.cjs.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/extract-domain.modern.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/extract-domain.modern.js.map

This file was deleted.

0 comments on commit 38ccfea

Please sign in to comment.