{"id":17717940,"url":"https://github.com/mamal72/node-yahoo-weather","last_synced_at":"2025-03-14T03:32:02.660Z","repository":{"id":57402881,"uuid":"47093376","full_name":"mamal72/node-yahoo-weather","owner":"mamal72","description":"[DEPRECATED - SEE ISSUES] :umbrella: A simple isomorphic yahoo weather API wrapper in 10 lines of code","archived":false,"fork":false,"pushed_at":"2016-11-15T06:25:13.000Z","size":44,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-04T22:05:17.766Z","etag":null,"topics":["api","weather","yahoo"],"latest_commit_sha":null,"homepage":"","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/mamal72.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":"2015-11-30T03:33:45.000Z","updated_at":"2019-08-15T18:06:49.000Z","dependencies_parsed_at":"2022-09-12T22:10:44.070Z","dependency_job_id":null,"html_url":"https://github.com/mamal72/node-yahoo-weather","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamal72%2Fnode-yahoo-weather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamal72%2Fnode-yahoo-weather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamal72%2Fnode-yahoo-weather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamal72%2Fnode-yahoo-weather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mamal72","download_url":"https://codeload.github.com/mamal72/node-yahoo-weather/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221432726,"owners_count":16820067,"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":["api","weather","yahoo"],"created_at":"2024-10-25T14:33:04.280Z","updated_at":"2024-10-25T14:33:21.174Z","avatar_url":"https://github.com/mamal72.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/mamal72/node-yahoo-weather.svg?branch=master)](https://travis-ci.org/mamal72/node-yahoo-weather)\n[![npm version](https://badge.fury.io/js/yahoo-weather.svg)](https://badge.fury.io/js/yahoo-weather)\n# node-yahoo-weather\n**node-yahoo-weather** is a dead simple isomorphic JavaScript weather module in 10 lines of code.\n\nThe code is written using [ES2015](https://babeljs.io/docs/learn-es2015/) and simply transformed back using [babel](https://babeljs.io) to the `dist` directory using a [Grunt](http://gruntjs.com/) task.\n\nI made this module cause I need it and I feel it may be used by someone, someday. Let's get started! :grin:\n\n\n## Installation\n\nClone the repo or install it from `npm`:\n```bash\nnpm install yahoo-weather --save\n```\n\n\n## Usage\n\nDead simple, as I said! Just one required param. Check it:\n```js\nimport weather from 'yahoo-weather'; // or require it\n\nweather('tehran').then(info =\u003e {\n  // Do what you want with `info`!\n}).catch(err =\u003e {\n  // Oops! Errors! :(\n});\n\nweather('tehran', 'f').then(info =\u003e { // second arg is the weather unit. you can pass 'c' or 'f'. defaults to 'c'.\n  // Do what you want with `info`!\n}).catch(err =\u003e {\n  // Oops! Errors! :(\n});\n\n// or use it with awesome async \u0026 await\nasync () =\u003e {\n  try {\n    const info = await weather('tehran');\n    // Do what you want with `info`!\n  } catch (err) {\n    // Oops! Errors! :(\n  }\n}();\n```\n\n\n## Tests\n\nRun the tests with following command:\n\n```bash\nnpm test\n```\n\n\n## Ideas?\n\nJust fill an issue and describe it. I'll check it ASAP. :grin:\n\n\n## Contribution\n\nYou can fork the repository, improve or fix it and then send the pull requests back if you want to see them here. I really appreciate that. :heart:\n\nRemember to lint your code before sending pull requests. Execute the linter script by running the following command and fix the errors if you get any.\n\n```bash\nnpm run lint\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamal72%2Fnode-yahoo-weather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmamal72%2Fnode-yahoo-weather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamal72%2Fnode-yahoo-weather/lists"}