Skip to content

Add Greetings #2402

@mathiasayivor

Description

@mathiasayivor

Clear and concise description of the problem

Sometimes, there is the need to generate random greetings, but faker-js does not currently have one

Suggested solution

adding an API for generating random greetings, based on the following:

  • Random greeting (for any time: morning, afternoon, evening, neutral)
  • Random greeting based on time of the day (morning, afternoon, evening, neutral)

Note;

  • neutral is for neutral greetings (greetings that can be used at any time of the day like "Hello", "Hi", etc.)
  • Users can optionally provide variables like name, for which the greeting would be generated (e.g. Hello {{name}}, Hi {{name}}, etc.)

Alternative

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions