Skip to content

Commit 970cf34

Browse files
📚 docs(README): Cleanup code sample.
1 parent 490db18 commit 970cf34

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ See [docs](https://codec-bytes.github.io/ascii/index.html).
77
Parent is [@codec-bytes/about](https://github.com/codec-bytes/about).
88

99
```js
10-
> import {encode, decode} from '@codec-bytes/ascii'
11-
> encode('hello, world');
12-
[104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100]
13-
> decode([104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100]);
14-
'hello, world'
10+
import {encode, decode} from '@codec-bytes/ascii'
11+
encode('hello, world'); // [104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100]
12+
decode([104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100]); // 'hello, world'
1513
```
1614

1715
[![License](https://img.shields.io/github/license/codec-bytes/ascii.svg)](https://raw.githubusercontent.com/codec-bytes/ascii/main/LICENSE)

0 commit comments

Comments
 (0)