Skip to content

Commit 888135c

Browse files
committed
Fix incorrect documentation
1 parent e9949da commit 888135c

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ tinyDOM also supports modern browsers and module bundlers (Rollup, Webpack, Snow
3434
import { TinyDOM as $ } from 'https://cdn.jsdelivr.net/npm/tiny-dom@2/dist/tinydom.es.min.js';
3535
```
3636

37-
### npm
37+
### CommonJS
3838

39-
You can also use npm (or your favourite package manager). First, install the package via the command line.
39+
You can also use npm. First, install the package via the command line.
4040

4141
```shell
4242
npm i tiny-dom
@@ -45,15 +45,7 @@ npm i tiny-dom
4545
Then import the package.
4646

4747
```js
48-
import { TinyDOM as $ } from 'tiny-dom';
49-
```
50-
51-
### CommonJS
52-
53-
If you use Node.js, you can import TinyDOM using the `require()` method with the `.cjs` version.
54-
55-
```js
56-
const { TinyDOM: $ } = require('https://cdn.jsdelivr.net/npm/tiny-dom@2/dist/tinydom.cjs.min.js');
48+
const { TinyDOM: $ } = require('tiny-dom');
5749
```
5850

5951
### AMD

0 commit comments

Comments
 (0)