diff --git a/README.md b/README.md index 10ea6ff..ad3b67b 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ You can also use `npm install https://github.com/archiverjs/node-crc32-stream/ar Inherits [Transform Stream](http://nodejs.org/api/stream.html#stream_class_stream_transform) options and methods. ```js -const { CRC32Stream } = require("crc32-stream"); +import { CRC32Stream } from "crc32-stream"; const source = fs.createReadStream("file.txt"); const checksum = new CRC32Stream(); @@ -39,7 +39,7 @@ checksum.end(); Inherits [zlib.DeflateRaw](http://nodejs.org/api/zlib.html#zlib_class_zlib_deflateraw) options and methods. ```js -const { DeflateCRC32Stream } = require("crc32-stream"); +import { DeflateCRC32Stream } from "crc32-stream"; const source = fs.createReadStream("file.txt"); const checksum = new DeflateCRC32Stream();