Skip to content

Commit

Permalink
fixes README formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hackergrrl committed Apr 13, 2016
1 parent 524fc37 commit 771b994
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,23 +132,24 @@ Returns an object with the ID's properties in hex format:

Returns the Peer ID's `id` as a hex string.

```js
1220d6243998f2fc56343ad7ed0342ab7886a4eb18d736f1b67d44b37fcc81e0f39f```
```
1220d6243998f2fc56343ad7ed0342ab7886a4eb18d736f1b67d44b37fcc81e0f39f
```

### id.toBytes()

Returns the Peer ID's `id` as a buffer.


```js
```
<Buffer 12 20 d6 24 39 98 f2 fc 56 34 3a d7 ed 03 42 ab 78 86 a4 eb 18 d7 36 f1 b6 7d 44 b3 7f cc 81 e0 f3 9f>
```

### id.toB58String()

Returns the Peer ID's `id` as a base58 string.

```js
```
QmckZzdVd72h9QUFuJJpQqhsZqGLwjhh81qSvZ9BhB2FQi
```

Expand Down

0 comments on commit 771b994

Please sign in to comment.