Skip to content

Commit d1911d5

Browse files
committed
Update index.md
1 parent 5efad6b commit d1911d5

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

website/index.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,26 @@ Install via npm
1111
```
1212
npm i strc
1313
```
14-
1514
Or you can use it on your website by inserting the following HTML `script` tag.
1615
```html
1716
<script type="text/javascript" src="https://jssc.js.org/script.js"></script>
1817
```
1918

2019
## Usage
21-
#### JavaScript
2220
```js
2321
const { compress, decompress } = require('strc');
2422

2523
const example = compress("Hello, world!");
2624
decompress(example);
2725
```
28-
29-
#### TypeScript
3026
```ts
3127
import { compress, decompress } from 'strc';
3228

3329
const example = compress("Hello, world!");
3430
decompress(example);
3531
```
3632

37-
#### Browsers/Frontend (static websites)
33+
**Browsers/Frontend (static websites)**
3834
```html
3935
<script type="text/javascript" src="https://jssc.js.org/script.js"></script>
4036
```
@@ -44,9 +40,11 @@ const decompressed = JSSC.decompress(compressed);
4440
```
4541

4642
## API
47-
#### `compress(str: string): string`
43+
44+
**`compress(str: string): string`**
4845
Compresses a string and returns the compressed result.
49-
#### `decompress(str: string): string`
46+
47+
**`decompress(str: string): string`**
5048
Decompresses a previously compressed string.
5149

5250
## Demo

0 commit comments

Comments
 (0)