From 81d6529dccca09bd3b5b75462e8c5124aed19579 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Fri, 2 Dec 2022 23:06:26 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + readme.md | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/package.json b/package.json index aa30cbbd..68e7fa7b 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "license": "MIT", "type": "module", "source": "./src/index.ts", + "types": "./build/index.d.ts", "exports": { "import": "./build/index.js", "default": "./build/index.js", diff --git a/readme.md b/readme.md index 0841ab1e..a5309eff 100644 --- a/readme.md +++ b/readme.md @@ -6,6 +6,7 @@ - [Intro](#intro) - [Auth](#auth) +- [Install](#install) - [Usage](#usage) - [Example](#example) - [Docs](#docs) @@ -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. +## Install + +```bash +npm install --save chatgpt +# or +yarn add chatgpt +# or +pnpm add chatgpt +``` + ## Usage ```ts