Skip to content

Commit

Permalink
Fix: Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit-Welsch committed Mar 19, 2024
1 parent 7ff60b1 commit e45d10f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
28 changes: 16 additions & 12 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

- [Check](#check)
- [Csv](#csv)
- [Log](#log)
- [Gen](#gen)
- [Log](#log)
- [Parser](#parser)
- [Queue](#queue)
- [Scanner](#scanner)
Expand Down Expand Up @@ -84,6 +84,18 @@ const csv2 = CSV.readString('name,age\r\nJohn,20\r\nJane,21\r\nJack,22', ',');
csv2.toString('|');
```

### Gen

Generate pseudo-random data

#### randomName

```typescript
import { Gen } from '@lv00/toolkit';

const newName = Gen.randomName(); // antonelli-xenodochial
```

### Log

Easily log to various outputs.
Expand All @@ -110,17 +122,7 @@ logger.log('Hello, World!', Level.ERROR); // log to all transports registered fo
new Promise((_, reject) => {
reject(new Error('Promise Error'));
}).catch((e) => logger.catch(e))

### Gen

Generate pseudo-random data

#### randomName

```typescript
import { Gen } from '@lv00/toolkit';
const newName = Gen.randomName(); // antonelli-xenodochial
```

### Parser

Expand Down Expand Up @@ -165,6 +167,7 @@ console.log(result);
}
```


### Scanner

Read folder synchronously without headache
Expand Down Expand Up @@ -220,3 +223,4 @@ const query = {
const q = Url.buildUrlWithQuery(url, query);
console.log(q.toString()); // https://lv0.eu/?p=2&brand=sony&brand=microsoft&brand=nintendo'
```

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.1.9",
"version": "1.1.10",
"name": "@lv00/toolkit",
"module": "./dist/index.js",
"type": "module",
Expand Down

0 comments on commit e45d10f

Please sign in to comment.