0.1.2 • Published 2 years ago

lorem-gpt v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

LoremGPT

LoremGPT

A fake data generator using GPT.

Installation

npm i -D lorem-gpt
yarn add -D lorem-gpt

Usage

Please set an environment variable:

import LoremGPT from "lorem-gpt";

const Lorem = new LoremGPT({
  locale: "en",
  openaiApiKey: process.env.OPENAI_API_KEY as string,
});

// ...

const animals = await Lorem.gen("Animals", 2);

console.log(animals);
// [ 'Elephant', 'Giraffe' ]

License

This code is free to use under the terms of the MIT license.

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago