New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lorem-gpt

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lorem-gpt

A fake data generator using GPT

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 19 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts