Commit 81d6529d authored by Travis Fischer's avatar Travis Fischer

👉

parent 288509b6
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",
"source": "./src/index.ts", "source": "./src/index.ts",
"types": "./build/index.d.ts",
"exports": { "exports": {
"import": "./build/index.js", "import": "./build/index.js",
"default": "./build/index.js", "default": "./build/index.js",
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
- [Intro](#intro) - [Intro](#intro)
- [Auth](#auth) - [Auth](#auth)
- [Install](#install)
- [Usage](#usage) - [Usage](#usage)
- [Example](#example) - [Example](#example)
- [Docs](#docs) - [Docs](#docs)
...@@ -25,6 +26,16 @@ It uses headless Chromium via [Playwright](https://playwright.dev), so **you sti ...@@ -25,6 +26,16 @@ It uses headless Chromium via [Playwright](https://playwright.dev), so **you sti
Chromium is opened in non-headless mode by default, which is important because the first time you run `ChatGPTAPI.init()`, you'll need to log in manually. We launch Chromium with a persistent context, so you shouldn't need to keep re-logging in after the first time. Chromium is opened in non-headless mode by default, which is important because the first time you run `ChatGPTAPI.init()`, you'll need to log in manually. We launch Chromium with a persistent context, so you shouldn't need to keep re-logging in after the first time.
## Install
```bash
npm install --save chatgpt
# or
yarn add chatgpt
# or
pnpm add chatgpt
```
## Usage ## Usage
```ts ```ts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment