{"id":18096825,"url":"https://github.com/bredele/air","last_synced_at":"2025-04-06T03:27:41.298Z","repository":{"id":21016284,"uuid":"24309064","full_name":"bredele/air","owner":"bredele","description":"air density (dry and humidity)","archived":false,"fork":false,"pushed_at":"2018-12-06T19:45:01.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T09:54:25.031Z","etag":null,"topics":["physics"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/bredele.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-22T00:39:57.000Z","updated_at":"2018-12-06T19:45:10.000Z","dependencies_parsed_at":"2022-08-30T21:31:08.835Z","dependency_job_id":null,"html_url":"https://github.com/bredele/air","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/bredele%2Fair","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredele%2Fair/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredele%2Fair/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredele%2Fair/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bredele","download_url":"https://codeload.github.com/bredele/air/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430619,"owners_count":20937870,"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":["physics"],"created_at":"2024-10-31T19:15:35.360Z","updated_at":"2025-04-06T03:27:41.272Z","avatar_url":"https://github.com/bredele.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"air\n===\n\nAir density (mass per unit volume of Earth atmosphere) function of temperature, altitude (default sea level) and humidity.\n\n![density](density.png)\n\n## dry air\n\nThe specific gas constant for dry air (`Rh`) is equal to `287.058 J/kg.K`.\n\n```js\nvar density = require('air');\n\n// 0 °C\ndensity(273.15);\n// =\u003e 1.2922 kg·m−3\n\n// 20 °C\ndensity(293.15);\n// =\u003e 1.2041 kg·m−3\n```\n\n## humidity\n\nThe molar mass of water is smaller than the molar mass of dry air and so, reduces the density of air. The specific gas constant for water air (`Rh`) is equal to:\n\n![humidity](humidity.png)\n\n```js\n// 0 °C, altitude 0 and 100% humidity\ndensity(273.15, 0, 1);\n// =\u003e 1.2893 kg·m−3\n\n// 20 °C, altitude 0 and 70% humidity\ndensity(293.15, 0, 0.7);\n// =\u003e 1.1967 kg·m−3\n```\n\n\u003e this formula only work with temperatures between `243.15K` and `343.15K`.\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 Olivier Wietrich \u003colivier.wietrich@gmail.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbredele%2Fair","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbredele%2Fair","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbredele%2Fair/lists"}