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
1717Inherits [ 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
2222const source = fs .createReadStream (" file.txt" );
2323const checksum = new CRC32Stream ();
@@ -39,7 +39,7 @@ checksum.end();
3939Inherits [ 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
4444const source = fs .createReadStream (" file.txt" );
4545const checksum = new DeflateCRC32Stream ();
You can’t perform that action at this time.
0 commit comments