Skip to content

Commit

Permalink
document node 18 requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
zeke authored and aron committed May 16, 2024
1 parent 70ca64a commit cfafee4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ and everything else you can do with
## Installation

This library requires Node.js >= 18.

Install it from npm:

```bash
Expand All @@ -20,7 +22,7 @@ npm install replicate

## Usage

Create the client:
Import or require the package:

```js
// CommonJS (default or using .cjs extension)
Expand All @@ -30,9 +32,11 @@ const Replicate = require("replicate");
import Replicate from "replicate";
```

```
Instantiate the client:

```js
const replicate = new Replicate({
// get your token from https://replicate.com/account
// get your token from https://replicate.com/account/api-tokens
auth: "my api token", // defaults to process.env.REPLICATE_API_TOKEN
});
```
Expand Down

0 comments on commit cfafee4

Please sign in to comment.