@ur-news/locations
v0.6.1
Published
A list of all locations (Colleges, Schools, Departments, and Combinations) in University of Rwanda.
Downloads
9
Readme
@ur-news/locations
A list of all locations (Colleges, Schools, Departments, and Combinations) in university of Rwanda.
Usage
Installation
npm install @ur-news/locations
List Colleges
This method can also be used to list Schools, Departments or Combinations.
const {colleges} = require('@ur-news/locations');
for (college in colleges) {
console.log(college);
}
List Schools in one college
const {colleges, schools} = require('@ur-news/locations');
const {abbr} = colleges.UR[0]; // Select abbreviation of the first college in UR school
console.log(schools[abbr]);
List Combinations in one Department
const {departments, combinations} = require('@ur-news/locations');
const {abbr} = departments['ENG'][0]; // Select abbreviation of the first department in School of Engineering
console.log(combinations[abbr]);