uganda-lakes
v1.0.2
Published
List Uganda Lakes
Downloads
9
Readme
uganda-lakes
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