File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,30 +11,26 @@ Install via npm
1111```
1212npm i strc
1313```
14-
1514Or 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
2321const { compress , decompress } = require (' strc' );
2422
2523const example = compress (" Hello, world!" );
2624decompress (example);
2725```
28-
29- #### TypeScript
3026``` ts
3127import { compress , decompress } from ' strc' ;
3228
3329const example = compress (" Hello, world!" );
3430decompress (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 ` **
4845Compresses a string and returns the compressed result.
49- #### ` decompress(str: string): string `
46+
47+ ** ` decompress(str: string): string ` **
5048Decompresses a previously compressed string.
5149
5250## Demo
You can’t perform that action at this time.
0 commit comments