@ur-news/locations

0.6.1 • Public • Published

@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]);

Package Sidebar

Install

npm i @ur-news/locations

Weekly Downloads

0

Version

0.6.1

License

GPL-3.0

Unpacked Size

50.4 kB

Total Files

7

Last publish

Collaborators

  • shemachristian
  • issa6
  • redjanvier