faker icon indicating copy to clipboard operation
faker copied to clipboard

[Company] Add Industries

Open aress31 opened this issue 5 months ago • 5 comments

Clear and concise description of the problem

If you could consider implementing the indutries for the company that would be great!

Suggested solution

// Returning an array of related industries for the generated company
faker.company.industries()

Alternative

No response

Additional context

No response

aress31 avatar Jun 29 '25 19:06 aress31

Thank you for your feature proposal.

We marked it as "waiting for user interest" for now to gather some feedback from our community:

  • If you would like to see this feature be implemented, please react to the description with an up-vote (:+1:).
  • If you have a suggestion or want to point out some special cases that need to be considered, please leave a comment, so we are aware about them.

We would also like to hear about other community members' use cases for the feature to give us a better understanding of their potential implicit or explicit requirements.

We will start the implementation based on:

  • the number of votes ( :+1: ) and comments
  • the relevance for the ecosystem
  • availability of alternatives and workarounds
  • and the complexity of the requested feature

We do this because:

  • There are plenty of languages/countries out there and we would like to ensure that every method can cover all or almost all of them.
  • Every feature we add to faker has "costs" associated to it:
    • initial costs: design, implementation, reviews, documentation
    • running costs: awareness of the feature itself, more complex module structure, increased bundle size, more work during refactors

View more issues which are waiting for user interest

github-actions[bot] avatar Jun 29 '25 19:06 github-actions[bot]

I think a similar industry() method would be more consistent with other methods

I'm assuming data like

  • Agriculture • Automotive • Biotechnology • Chemicals • Construction • Consumer Goods • Education ...

matthewmayer avatar Jun 30 '25 00:06 matthewmayer

@matthewmayer a company can operate across multiple industries so it would make more sense to return an array. Having said that, I would still take industry over nothing.

aress31 avatar Jun 30 '25 01:06 aress31

We have helper methods for returning several of an array like faker.helpers.arrayElements and faker.helpers.multiple that can be used in conjunction with any method.

matthewmayer avatar Jun 30 '25 03:06 matthewmayer

@matthewmayer, an ETA in mind for this feature, that is a quite common use case to store companies/clients industries and being able to use faker to mock this data would be superb!

aress31 avatar Jun 30 '25 09:06 aress31