File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ You can also use `npm install https://github.com/archiverjs/node-crc32-stream/ar
17
17
Inherits [ Transform Stream] ( http://nodejs.org/api/stream.html#stream_class_stream_transform ) options and methods.
18
18
19
19
``` js
20
- const { CRC32Stream } = require ( " crc32-stream" ) ;
20
+ import { CRC32Stream } from " crc32-stream" ;
21
21
22
22
const source = fs .createReadStream (" file.txt" );
23
23
const checksum = new CRC32Stream ();
@@ -39,7 +39,7 @@ checksum.end();
39
39
Inherits [ zlib.DeflateRaw] ( http://nodejs.org/api/zlib.html#zlib_class_zlib_deflateraw ) options and methods.
40
40
41
41
``` js
42
- const { DeflateCRC32Stream } = require ( " crc32-stream" ) ;
42
+ import { DeflateCRC32Stream } from " crc32-stream" ;
43
43
44
44
const source = fs .createReadStream (" file.txt" );
45
45
const checksum = new DeflateCRC32Stream ();
You can’t perform that action at this time.
0 commit comments