chemistry
Chemistry
A Crystal library containing information about all 118 chemical elements.
Installation
Add the dependency to your shard.yml:
dependencies:
chemistry:
github: Ramadanski/chemistry
Then run:
shards install
Usage
require "chemistry"
puts Chemistry::ELEMENTS["H"][:name]
puts Chemistry::ELEMENTS["C"][:mass]
puts Chemistry::ELEMENTS["Fe"][:number]
Output:
Hydrogen
12.011
26
Development
Clone the repository:
git clone https://github.com/Ramadanski/chemistry.git
cd chemistry
Run the tests:
crystal spec
Contributing
Contributions are welcome!
- Fork the repository.
- Create a feature branch.
- Make your changes.
- Commit your changes.
- Push your branch.
- Open a Pull Request.
Contributors
- Ramadanski - creator and maintainer
License
MIT
Repository
chemistry
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- about 5 hours ago
- September 21, 2026
License
MIT License
Links
Synced at
Mon, 21 Sep 2026 11:36:12 GMT
Languages