New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

brutime

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brutime

Library for fetching timetabling info for [Brunel](https://brunel.ac.uk) students.

latest
Source
npmnpm
Version
1.0.0-0
Version published
Maintainers
1
Created
Source

Brutime

js-standard-style Travis Coveralls

Brutime is a Node.JS library for scraping data from Brunel University's timetabling portal.

Install

npm install --save brutime

Usage

Require brutime

var BruTime = require('brutime')

Create an instance of BruTime with your login/password.

var timetable = new BruTime({
  login: '1156145',
  password: 'my password'
})

listMyModules() - List your enrolled modules

// List Enrolled Modules
timetable.listMyModules(function (err, myModules) {
  if (err) {
    throw err
  }
  // myModules === ['CS2001', 'CS2002', 'CS2003']
  console.log('My Modules: ' + myModules.join(', '))
  // Prints: CS2001, CS2002, CS2003
})

getMyModulesTimetable() - List contact hours for your enrolled modules

timetable.getMyModulesTimetable({
  period: '1-12',
  days: '1-7'
}, function (err, timetable) {
  if (err) {
    return console.error(err)
  }
  console.log(timetable)
})

Testing

$ export LOGIN=YOUR_STUDENT_ID
$ export PASSWORD=YOUR_STUDENT_PASSWORD
$ npm test

Licence

MIT

Keywords

Brunel

FAQs

Package last updated on 06 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts