Skip to content

Random bundle id #1154

@ejcheng

Description

@ejcheng

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 system module, especially fileName(), 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.cocoa
faker.system.bundleID() // com.mocha.flex

This 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions