Skip to content

Commit cfafee4

Browse files
zekearon
authored andcommitted
document node 18 requirement
1 parent 70ca64a commit cfafee4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ and everything else you can do with
1212
1313
## Installation
1414

15+
This library requires Node.js >= 18.
16+
1517
Install it from npm:
1618

1719
```bash
@@ -20,7 +22,7 @@ npm install replicate
2022

2123
## Usage
2224

23-
Create the client:
25+
Import or require the package:
2426

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

33-
```
35+
Instantiate the client:
36+
37+
```js
3438
const replicate = new Replicate({
35-
// get your token from https://replicate.com/account
39+
// get your token from https://replicate.com/account/api-tokens
3640
auth: "my api token", // defaults to process.env.REPLICATE_API_TOKEN
3741
});
3842
```

0 commit comments

Comments
 (0)