Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cressie176 authored Sep 15, 2023
1 parent d7b3c86 commit c9d36fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const config = {
database: 'mydb'
};

const scanner = new Scanner(config);
const { Scanner } = new Scanner(config);

scanner.connect()
.then(() => scanner.init())
Expand Down Expand Up @@ -55,9 +55,9 @@ yarn add pg-scanner
Import the Scanner module into your JavaScript or TypeScript file:

```bash
const Scanner = require('pg-scanner');
const { Scanner } = require('pg-scanner');
# or
import Scanner from 'pg-scanner';
import { Scanner } from 'pg-scanner';
```
## PG-Scanner API
Expand Down Expand Up @@ -98,4 +98,4 @@ The disconnect method is responsible for disconnecting the client from the datab
Contributions to the Scanner module are welcome. If you find a bug, have a feature request, or want to improve the code, please open an issue or submit a pull request on GitHub.
### License
This project is licensed under the MIT License. Feel free to use and modify the code as needed.
This project is licensed under the MIT License. Feel free to use and modify the code as needed.

0 comments on commit c9d36fe

Please sign in to comment.