Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING CHANGE: use ESM exports only #33

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading
Loading