Skip to content

Commit

Permalink
fixup! fixup! zlib: expose zlib.crc32()
Browse files Browse the repository at this point in the history
  • Loading branch information
joyeecheung committed Apr 25, 2024
1 parent d9057fc commit d4fc5ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/zlib.md
Expand Up @@ -733,13 +733,13 @@ in data transmission. It's not suitable for cryptographic authentication.

To be consistent with other APIs, if the `data` is a string, it will
be encoded with UTF-8 before being used for computation. If users only
uses Node.js to compute and check the checksums, this works well with
use Node.js to compute and match the checksums, this works well with
other APIs that uses the UTF-8 encoding by default.

Some third-party JavaScript libraries that compute the checksum on a
Some third-party JavaScript libraries compute the checksum on a
string based on `str.charCodeAt()` so that it can be run in browsers.
If users want to match the checksum computed with this kind of library
from the browser, it's better to use the same library in Node.js
in the browser, it's better to use the same library in Node.js
if it also runs in Node.js. If users have to use `zlib.crc32()` to
match the checksum produced by such a third-party library:

Expand Down

0 comments on commit d4fc5ca

Please sign in to comment.