├── clima ├── README.md └── package.json /clima: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | clima() { 3 | curl --silent "http://wttr.in/$*" 4 | } 5 | 6 | clima ${@} 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # clima 2 | 3 | > Get city weather from wttr.in 4 | 5 | ## Installation 6 | 7 | ```console 8 | npm i -g clima 9 | ``` 10 | 11 | ## Usage 12 | 13 | ```sh 14 | # clima 15 | $ clima Porto Alegre 16 | ``` 17 | 18 | ## License 19 | 20 | [MIT](https://github.com/fdaciuk/licenses/blob/master/MIT-LICENSE.md) © Fernando Daciuk 21 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "clima", 3 | "version": "1.1.4", 4 | "description": "Get city weather from wttr.in", 5 | "main": "clima", 6 | "bin": { 7 | "clima": "clima" 8 | }, 9 | "preferGlobal": true, 10 | "scripts": { 11 | "test": "echo \":)\"", 12 | "postversion": "git push origin dev && git checkout master && git merge dev && git push origin master --tags && npm publish && git checkout dev" 13 | }, 14 | "repository": { 15 | "type": "git", 16 | "url": "git+ssh://git@github.com/fdaciuk/clima.git" 17 | }, 18 | "keywords": [ 19 | "weather", 20 | "climate", 21 | "clima" 22 | ], 23 | "author": "Fernando Daciuk - @fdaciuk", 24 | "license": "MIT", 25 | "bugs": { 26 | "url": "https://github.com/fdaciuk/clima/issues" 27 | }, 28 | "homepage": "https://github.com/fdaciuk/clima#readme" 29 | } 30 | --------------------------------------------------------------------------------