fix: update README

Signed-off-by: Florian BOUILLON <f.bouillon@aptatio.com>
This commit is contained in:
Florian Bouillon 2023-07-18 12:54:06 +02:00
parent 98c80fcd20
commit 74de8961ef

View File

@ -82,8 +82,11 @@ _in Browser_
_in NodeJS (in an async context)_ _in NodeJS (in an async context)_
```typescript ```typescript
// Import the SDK in Typescript // Import the SDK in Typescript or moduleJS
import TCGdex from '@tcgdex/sdk'; import TCGdex from '@tcgdex/sdk'
// import the SDK in commonJS
const TCGdex = require('@tcgdex/sdk').default
// Instantiate the SDK // Instantiate the SDK
const tcgdex = new TCGdex('en'); const tcgdex = new TCGdex('en');