Skip to content

Commit

Permalink
docs: add installing using yarn instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
ilfa committed Mar 25, 2022
1 parent 539f071 commit f02626e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,19 @@ Node.js wrapper for [FingerprintJS Sever API](https://dev.fingerprintjs.com/docs

## Usage

Install package
Install package using npm
``` sh
npm i @fingerprintjs/fingerprintjs-pro-server-api
```

Or install package using yarn
``` sh
yarn add @fingerprintjs/fingerprintjs-pro-server-api
```

### Usage of the Server API
```ts
import { FingerprintJsServerApiClient, Region } from '@fingerprintjs/fingerprintjs-pro-server-api'
import { FingerprintJsServerApiClient, Region } from '@fingerprintjs/fingerprintjs-pro-server-api';

// Init client with the give region and api_token
const client = new FingerprintJsServerApiClient({region: Region.Global, apiToken: "<api_token>"});
Expand Down

0 comments on commit f02626e

Please sign in to comment.