Skip to content

telemark/tfk-schools-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status js-standard-style

tfk-schools-info

Information regarding our schools

Installation

$ npm i tfk-schools-info

Usage

Call the module with no options to list all schools.

Use an options object to specify your search.

Possible keys:

  • organizationNumber
  • name
  • fullName
  • shortName
  • officialName
  • accessGroup
  • phoneNumber
  • mail

const getSchools = require('tfk-schools-info')
const options = {
  shortName: 'skivs'
}

console.log(getSchools()) //=> All schools

console.log(getSchools(options)) //=> Schools with shortName SKIVS

Basic groups

To list all basic groups from a school

const { getGroups } = require('tfk-schools-info')

console.log(getGroups('SKIVS'))

To list all groups for all schools

const { getGroups } = require('tfk-schools-info')

console.log(getGroups())

License

MIT