HCLarsen / rest_countries

Crystal wrapper for Rest Countries API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rest_countries

A Crystal wrapper for the Rest Countries API.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      rest_countries:
        github: HCLarsen/rest_countries
  2. Run shards install

Usage

require "rest_countries"
canada = RestCountries.getCountryByCode("CAN")
canada.capital  #=> "Ottawa"

Contributing

  1. Fork it (https://github.com/HCLarsen/rest_countries/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

About

Crystal wrapper for Rest Countries API

License:MIT License


Languages

Language:Crystal 96.4%Language:Makefile 3.6%