Skip to content

Latest commit

 

History

History
97 lines (73 loc) · 2.06 KB

readme.md

File metadata and controls

97 lines (73 loc) · 2.06 KB

npm version

Kobokan

a package that you can use to get city weather data in Indonesia

Table of contents

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Installation

Start with install library using yarn or npm:

$ npm install kobokan

Or if you prefer using Yarn:

$ yarn add kobokan
 const Kobokan = require('kobokan')

Usage

Scripts

 Kobokan.then((results) => {
    console.log(results);
  })
  .catch((error) => {
    console.log(error);
  });

Output

[
    {
        "city": "Banda Aceh",
        "temperature": "26°C",
        "time": "07:00 WIB",
        "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png",
        "description": "Berawan" 
    },
    {
        "city": "Serang",
        "temperature": "26°C",
        "time": "07:00 WIB",
        "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah berawan-am.png",
        "description": "Cerah Berawan" 
    },
    {
        "city": "Bengkulu",
        "temperature": "24°C",
        "time": "07:00 WIB",
        "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah berawan-am.png",
        "description": "Cerah Berawan" 
    },
    ...[and more]
]

API

Kobokan

Kobokan()

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Arie Akbarull Ridho - ariear - ariear

See also the list of contributors who participated in this project.