-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
c: featureRequest for new featureRequest for new featurehas workaroundWorkaround provided or linkedWorkaround provided or linkedp: 1-normalNothing urgentNothing urgents: waiting for user interestWaiting for more users interested in this featureWaiting for more users interested in this feature
Milestone
Description
Clear and concise description of the problem
Faker has many different modules but even more requested features.
Many of these features are sadly too complex to be maintained by the Faker-JS team.
Suggested solution
The Faker class should accept a list of modules that will be used under the created Faker instance. These modules will be plugins maintained by the community.
Like:
const myModule = {
test() {
return 'test';
}
}
const fakerWithCustomModule = new Faker({
customModules: [
{ name: 'testModule', module: myModule },
],
});
fakerWithCustomModule.testModule.test(); // 'test'
Alternative
No response
Additional context
Somewhat related to #444
mike-mccormick, totymedli, xDivisionByZerox, jpulec, github-actions and 17 more
Metadata
Metadata
Assignees
Labels
c: featureRequest for new featureRequest for new featurehas workaroundWorkaround provided or linkedWorkaround provided or linkedp: 1-normalNothing urgentNothing urgents: waiting for user interestWaiting for more users interested in this featureWaiting for more users interested in this feature