UNPKG

928 BMarkdownView Raw
1Byte Manipulation
2=================
3
4This sub-module is part of the [ethers project](https://github.com/ethers-io/ethers.js).
5
6It is responsible for manipulating binary data.
7
8For more information, see the [documentation](https://docs.ethers.io/v5/api/utils/bytes/).
9
10
11Importing
12---------
13
14Most users will prefer to use the [umbrella package](https://www.npmjs.com/package/ethers),
15but for those with more specific needs, individual components can be imported.
16
17```javascript
18const {
19
20 isBytesLike,
21 isBytes,
22
23 arrayify,
24
25 concat,
26
27 stripZeros,
28 zeroPad,
29
30 isHexString,
31 hexlify,
32
33 hexDataLength,
34 hexDataSlice,
35 hexConcat,
36
37 hexValue,
38
39 hexStripZeros,
40 hexZeroPad,
41
42 splitSignature,
43 joinSignature,
44
45 // Types
46
47 Bytes,
48 BytesLike,
49
50 DataOptions,
51
52 Hexable,
53
54 SignatureLike,
55 Signature
56
57} = require("@ethersproject/bytes");
58```
59
60
61License
62-------
63
64MIT License