Skip to content

Commit

Permalink
Update readme with instructions for commonJS and ES modules
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscoGileno committed Jul 8, 2024
1 parent 71a63ce commit dc47541
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,16 @@ yarn add @incognia/api

Require the package:

CommonJS modules:
```js
const { IncogniaApi } = require('@incognia/api')
```

Or ES modules:
```js
import { IncogniaApi } from "@incognia/api";
```

Instantiate with your clientId and clientSecret:

```js
Expand Down

0 comments on commit dc47541

Please sign in to comment.