Modules@robinpath/faker

@robinpath/faker

0.1.0Public

Fake data generation with seedable PRNG. Generates names, emails, addresses, lorem ipsum, numbers, dates, UUIDs, colors, IPs, and more. No external dependencies.

@robinpath/faker

Fake data generation with seedable PRNG. Generates names, emails, addresses, lorem ipsum, numbers, dates, UUIDs, colors, IPs, and more. No external dependencies.

Category Functions Auth License

Why use this module?

The faker module lets you:

  • Set the random seed for reproducible fake data generation
  • Generate a random full name
  • Generate a random first name
  • Generate a random last name
  • Generate a random email address

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

npm install @robinpath/faker

Quick Start

No credentials needed — start using it right away:

faker.name

Available Functions

FunctionDescription
faker.seedSet the random seed for reproducible fake data generation
faker.nameGenerate a random full name
faker.firstNameGenerate a random first name
faker.lastNameGenerate a random last name
faker.emailGenerate a random email address
faker.phoneGenerate a random phone number
faker.addressGenerate a random street address
faker.cityGenerate a random city name
faker.countryGenerate a random country name
faker.zipCodeGenerate a random zip code
faker.companyGenerate a random company name
faker.loremGenerate lorem ipsum text as words, sentences, or paragraphs
faker.numberGenerate a random integer within a range
faker.floatGenerate a random floating-point number within a range
faker.booleanGenerate a random boolean value
faker.dateGenerate a random date within a range
faker.uuidGenerate a random UUID v4
faker.pickPick a random element from an array
faker.shuffleRandomly shuffle an array using Fisher-Yates algorithm
faker.paragraphGenerate a single random paragraph of lorem ipsum
faker.sentenceGenerate a single random sentence of lorem ipsum
faker.wordGenerate a single random lorem ipsum word
faker.colorGenerate a random color in hex, rgb, or name format
faker.ipGenerate a random IP address
faker.urlGenerate a random URL
faker.avatarGenerate a random avatar image URL

Examples

Generate a random full name

faker.name

Generate a random first name

faker.firstName

Generate a random last name

faker.lastName

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/faker";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  faker.name
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT

Versions (1)

VersionTagPublished
0.1.0latestyesterday
Install
$ robinpath install @robinpath/faker
Version0.1.0
LicenseMIT
Unpacked Size9.2 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

utilities