Skip to content

Commit

Permalink
fix: improve deno readme (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Nov 6, 2023
1 parent 1db5c29 commit 18b04e8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions build-deno
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,24 @@ set -exuo pipefail
rm -rf deno; mkdir deno
cp -rp src/* deno

PACKAGE_VERSION=$(node -p 'require("./package.json").version')

cat << EOF > deno/README.md
# OpenAI Node API Library - Deno build
This is a build produced from openai/openai-node - please go there to read the source, file issues, etc.
This is a build produced from https://github.com/openai/openai-node - please go there to read the source and docs, file issues, etc.
Installation:
Usage:
\`\`\`
import OpenAI from "https://deno.land/x/openai";
\`\`\`ts
import OpenAI from "https://deno.land/x/openai@$PACKAGE_VERSION/mod.ts";
const client = new OpenAI();
\`\`\`
Note that in many Deno environments, you can also do this:
\`\`\`
\`\`\`ts
import OpenAI from "npm:openai";
\`\`\`
EOF
Expand Down

0 comments on commit 18b04e8

Please sign in to comment.