chemistry

Chemistry library for Crystal

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!

  1. Fork the repository.
  2. Create a feature branch.
  3. Make your changes.
  4. Commit your changes.
  5. Push your branch.
  6. Open a Pull Request.

Contributors

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