mirror of
https://github.com/tcgdex/javascript-sdk.git
synced 2025-04-22 10:42:10 +00:00
fix: update README
Signed-off-by: Florian BOUILLON <f.bouillon@aptatio.com>
This commit is contained in:
parent
98c80fcd20
commit
74de8961ef
@ -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');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user