Added ES6 Import to README

This commit is contained in:
Ben Ashton 2021-03-14 21:37:45 -07:00
parent 7501617e1e
commit c99e87b17d

View File

@ -24,6 +24,20 @@ PawSQLite-Node-Adapter: [https://git.n0m.org/n0m/PawSQLite-Node-Adapter](https:/
## Usage
### Importing:
ES6 Module:
```javascript
import { PawSQLite, PawSQLiteError } from "pawsqlite";
```
CommonJS
```javascript
const PawSQLite = require("pawsqlite");
```
### Registering an adapter:
You must register at least one adapter before you can use PawSQLite