pourtystart

1.0.0 • Public • Published

Pourty

Pourty is a simple JavaScript library for generating random poetry. It provides a straightforward way to create poems with randomized lines using nouns, adjectives, and verbs.

Installation

You can install Pourty via npm:

npm install pourty

Usage

const Poet = require('pourty');

const poet = new Poet();
console.log(poet.generatePoem(4));

Example Output

A sample poem generated by Pourty might look like this:

Beautiful moon whispers.
Glorious sun sparkles.
Mysterious heart shines.
Bright star dances.

API

new Poet()

Creates a new instance of the Poet class.

Poet.generatePoem(lines: number): string

Generates a poem with the specified number of lines.

  • lines: The number of lines in the poem.

Returns the generated poem as a string.

Contributing

Contributions are welcome! If you'd like to contribute to Pourty, please open an issue or submit a pull request on GitHub.

License

Pourty is licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i pourtystart

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

1.86 kB

Total Files

3

Last publish

Collaborators

  • lexyk1