APACHE-2.0 License
Library to generate fake data for Protobuf messages. Uses faker-js to generate values based on Protobuf field types and field names.
import { fake } from "protofake";
import { UserSchema } from "./gen/example_pb";
const user = fake(UserSchema);
user.firstName; // "Claude"
user.lastName; // "Mueller"
user.active; // true
The function fake
takes a message descriptor as an input, and returns a new instance with all fields populated with
fake data.
Work in progress. Things to do: