Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit cde5a44

Browse files
authored
Add details of npm package.
1 parent 4912e50 commit cde5a44

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ This client can be used to send text to the API and get back the scores for a se
55

66
## Usage
77

8-
First, you'll need an API key from ConversationAI's [Perspective API](https://www.perspectiveapi.com/).
8+
This libray is [published on npm as @conversationai/perspectiveapi-js-client](https://www.npmjs.com/package/@conversationai/perspectiveapi-js-client).
9+
10+
To use it, you'll first need an API key from ConversationAI's [Perspective API](https://www.perspectiveapi.com/). Then you can use the library like this:
911

1012
```
11-
const { Client } = require("perspectiveapi-js-client");
13+
const { Client } = require("@conversationai/perspectiveapi-js-client");
1214
const client = new Client(YOUR_API_KEY);
1315
const results = client.getScores(text, options);
1416
```

0 commit comments

Comments
 (0)