{"id":19140738,"url":"https://github.com/tijn/kelvin","last_synced_at":"2026-06-10T00:30:18.502Z","repository":{"id":66758499,"uuid":"116059452","full_name":"tijn/kelvin","owner":"tijn","description":"A small library for working with temperatures in Crystal","archived":false,"fork":false,"pushed_at":"2020-05-09T09:51:10.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T15:12:12.859Z","etag":null,"topics":["celcius","crystal","crystal-lang","fahrenheit","fahrenheit-to-centigrade","kelvin","temperature"],"latest_commit_sha":null,"homepage":null,"language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tijn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-02T21:35:16.000Z","updated_at":"2020-05-09T09:51:13.000Z","dependencies_parsed_at":"2024-04-19T07:48:24.915Z","dependency_job_id":null,"html_url":"https://github.com/tijn/kelvin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tijn%2Fkelvin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tijn%2Fkelvin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tijn%2Fkelvin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tijn%2Fkelvin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tijn","download_url":"https://codeload.github.com/tijn/kelvin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240222499,"owners_count":19767458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["celcius","crystal","crystal-lang","fahrenheit","fahrenheit-to-centigrade","kelvin","temperature"],"created_at":"2024-11-09T07:18:37.481Z","updated_at":"2026-06-10T00:30:18.468Z","avatar_url":"https://github.com/tijn.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kelvin\n\n[![Build Status](https://travis-ci.org/tijn/kelvin.svg?branch=master)](https://travis-ci.org/tijn/kelvin)\n\nA small library for handling temperatures.\n\nIt's as precise as a 64 bit Float.\n\n## Installation\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  kelvin:\n    github: tijn/kelvin\n```\n\n## Usage\n\n```crystal\nrequire \"kelvin\"\n\ntemperature = Kelvin::Temperature.celcius(22.3)\nputs temperature\n# =\u003e \"22.3 °C\" : String\n# or if you're in the US, it will output: \"72.1 °F\" : String\n# It follows the LOCALE settings on your system.\n\nputs temperature.to_kelvin\n# =\u003e 295.45\n```\n\nIt can also parse text:\n\n```crystal\nrequire \"kelvin\"\n\ntemperature = Kelvin::Temperature.parse(\"22.3 °C\")\nputs temperature\n# =\u003e \"22.3 °C\" : String\n```\n\nand you can use it to compare temperatures on different scales.\n\n```crystal\ntemperature_in_paris = Kelvin::Temperature.parse(\"22.3 °C\")\ntemperature_in_boston = Kelvin::Temperature.parse(\"70.1 °F\")\n\ncity = (temperature_in_paris \u003e temperature_in_boston) ? \"Paris\" : \"Boston\"\nputs \"#{city} is warmer today\"\n```\n\n## Development\n\nTODO: Write development instructions here\n\n## Contributing\n\n1. Fork it ( https://github.com/tijn/kelvin/fork )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n\n## Contributors\n\n- [tijn](https://github.com/tijn) Tijn Schuurmans - creator, maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftijn%2Fkelvin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftijn%2Fkelvin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftijn%2Fkelvin/lists"}