-
-
Notifications
You must be signed in to change notification settings - Fork 932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Science module #944
Comments
From my side, sounds interesting 🤔 |
Edit: Or consolidate everything under |
IMO this discussion is off topic. Please open a new dedicated issue for that. |
@Shinigami92 Can you please create that issue? It's your idea, haha Now that we're back on track, I would like some input from @faker-js/maintainers and/or @faker-js/members about this proposal. Thanks :) |
The elementNames might be useful, but I'm not sure when you would need a random unit, usually the unit is fixed and the value is dynamic. But I'm not really against it. |
Sounds fine to me. Although I would probably do
Why? Because they might need both, symbol and name at the same time... And for units, I would just call it |
Yeah, these names you suggested are much better than what I thought of, thanks for the input! |
Clear and concise description of the problem
I think it would be a good idea to add a science module to Faker to generate random scientific data. See below for examples.
Suggested solution
Create a new module called science
faker.science.elementName() // "Lithium"
faker.science.elementSymbol() // "F"
faker.science.siUnit() // "kg"
faker.science.siUnit({ long: true, plural: false }) // "meter"
Alternative
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: