0.6.1 • Published 3 years ago

@ur-news/locations v0.6.1

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
3 years ago

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

3 years ago

0.5.0

3 years ago

0.6.0

3 years ago

0.4.0

3 years ago

0.2.1

3 years ago

0.3.1

3 years ago

0.2.2

3 years ago

0.2.0

3 years ago