Skip to content

Commit f3e650e

Browse files
authored
fix(docs): update README for packages/util (#382)
1 parent 3a08215 commit f3e650e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/util/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# @aws-crypto/crc32c
1+
# @aws-crypto/util
22

3-
Pure JS implementation of CRC32-C https://en.wikipedia.org/wiki/Cyclic_redundancy_check
3+
Helper functions
44

55
## Usage
66

77
```
8-
import { Crc32c } from '@aws-crypto/crc32c';
9-
10-
const crc32Digest = (new Crc32c).update(buffer).digest()
8+
import { convertToBuffer } from '@aws-crypto/util';
119
10+
const data = "asdf";
11+
const utf8EncodedUint8Array = convertToBuffer(data);
1212
```
1313

1414
## Test

0 commit comments

Comments
 (0)