Skip to content

Commit 18a6d33

Browse files
committed
doc(readme): Updates install info and tested Node.js versions
1 parent 1fd3665 commit 18a6d33

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,35 +35,30 @@ details.
3535

3636
### Node.js
3737

38+
This module is tested on Node.js v8, v10, v12, v14, v16, v18, v20 and v22. See
39+
[`.github/workflows/node.js.yml`](.github/workflows/node.js.yml).
40+
3841
```sh
3942
npm install psl
4043
```
4144

4245
#### ESM
4346

44-
From version `v1.11.0` you can now import `psl` as ESM.
47+
From version `v1.13.0` you can now import `psl` as ESM.
4548

4649
```js
4750
import psl from 'psl';
4851
```
4952

5053
#### CommonJS
5154

52-
If your project still uses CommonJS on Node.js v12 or later (with support for
53-
conditional exports), you can continue importing the module like in previous
54-
versions.
55+
If your project still uses CommonJS, you can continue importing the module like
56+
in previous versions.
5557

5658
```js
5759
const psl = require('psl');
5860
```
5961

60-
⚠️ If you are using Node.js v10 or older (😰), you can still use the latest
61-
version of this module, but you will need to import the bundled UMD.
62-
63-
```js
64-
var psl = require('psl/dist/psl.umd.cjs');
65-
```
66-
6762
### Browser
6863

6964
#### Using a bundler

0 commit comments

Comments
 (0)