-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Random bundle id #1154
Copy link
Copy link
Open
Labels
c: featureRequest for new featureRequest for new featurep: 1-normalNothing urgentNothing urgents: waiting for user interestWaiting for more users interested in this featureWaiting for more users interested in this feature
Milestone
Metadata
Metadata
Assignees
Labels
c: featureRequest for new featureRequest for new featurep: 1-normalNothing urgentNothing urgents: waiting for user interestWaiting for more users interested in this featureWaiting for more users interested in this feature
Clear and concise description of the problem
I wish there was a function where I could generate a random three-part app bundle id. I think this would fit well with the other functions in the
systemmodule, especiallyfileName(), because bundle IDs are used to identify applications, similarly to how file names identify files.Suggested solution
In
faker.system, the function should output values similar to the ones below:Using the generally recommended "reverse domain name notation", where "com" is appended to the beginning of all
bundle IDs
faker.system.bundleID() // com.apple.cocoafaker.system.bundleID() // com.mocha.flexThis function could be implemented by returning a string:
"com." + faker.random.word().toLowerCase() + "." + faker.random.word().toLowerCase().Alternative
No response
Additional context
I would be willing to submit a PR for this.