Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Oct 29, 2024
1 parent 2975b78 commit 16738ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ npm install @softvisio/msgpack
```javascript
import * as msgpack from "@softvisio/msgpack";

const buffer = msgpack.encode([new Date()]);
const buffer = msgpack.encode( [ new Date() ] );

const data = msgpack.decode(buffer);
const data = msgpack.decode( buffer );
```

### msgpack.encode( data, encoding? )
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ npm install @softvisio/msgpack
```javascript
import * as msgpack from "@softvisio/msgpack";

const buffer = msgpack.encode([new Date()]);
const buffer = msgpack.encode( [ new Date() ] );

const data = msgpack.decode(buffer);
const data = msgpack.decode( buffer );
```

### msgpack.encode( data, encoding? )
Expand Down

0 comments on commit 16738ba

Please sign in to comment.