Skip to content

Commit 58ecd52

Browse files
authored
Update README.md
1 parent 0cd3170 commit 58ecd52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ You can also use `npm install https://github.com/archiverjs/node-crc32-stream/ar
1717
Inherits [Transform Stream](http://nodejs.org/api/stream.html#stream_class_stream_transform) options and methods.
1818

1919
```js
20-
const { CRC32Stream } = require("crc32-stream");
20+
import { CRC32Stream } from "crc32-stream";
2121

2222
const source = fs.createReadStream("file.txt");
2323
const checksum = new CRC32Stream();
@@ -39,7 +39,7 @@ checksum.end();
3939
Inherits [zlib.DeflateRaw](http://nodejs.org/api/zlib.html#zlib_class_zlib_deflateraw) options and methods.
4040

4141
```js
42-
const { DeflateCRC32Stream } = require("crc32-stream");
42+
import { DeflateCRC32Stream } from "crc32-stream";
4343

4444
const source = fs.createReadStream("file.txt");
4545
const checksum = new DeflateCRC32Stream();

0 commit comments

Comments
 (0)