uganda-lakes

1.0.2 • Public • Published

uganda-lakes

Build Status Coverage Status Maintainability

Node js package for listing all lakes in Uganda and their location coordinates.

Features

  • Get all lakes in uganda with their latitude/longtitude coordinates
  • Get one lake by name

Installing

Using npm:

$ npm install uganda-lakes

Using yarn:

$ yarn add uganda-lakes

Usage

CommonJS usage

Getting all lakes

const { getLakes } = require('uganda-lakes');

function lakes(){
  console.log(getLakes)
}

Getting one lake by name

NOTE: Just provide the lake name. If the lake doesnot exist it will return undifined

const { getLake } = require('uganda-lakes');

const result = getLake('Victoria')
console.log(result)

Es6 usage

Getting all lakes

import { getLakes } from 'uganda-lakes';

const lakes =()=>{
  console.log(getLakes)
}

Getting one lake by name

import { getLakes } from 'uganda-lakes';

const result = getLake('Victoria')
console.log(result)

Tests

To run the test suite, first install the dependencies, then run npm test:

npm install
npm test

Contributing

File an issue or submit a pull-request. Before submitting any pull-requests please ensure you've built the project and run the tests.

Resources

Wikipedia for data.

Author

Miriam Nakiwuge

License

ISC

Package Sidebar

Install

npm i uganda-lakes

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

13.9 kB

Total Files

8

Last publish

Collaborators

  • nakiwuge