Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 646 Bytes

README.md

File metadata and controls

37 lines (29 loc) · 646 Bytes

kamar-notices

Module that grabs the notices and returns an array from a KAMAR school portal

Install

npm install kamar-notices

or use yarn

yarn add kamar-notices

Usage

const KamarNotices = require("kamar-notices");
const notices = new KamarNotices("PORTAL_URL");
notices.getNotices().then((noticeList) => {
  /*
    [
        {
            for: 'All',
            title: 'Test Notice',
            staff: 'ABC',
            content: "This is a test notice"
        }
        ...
    ]
  */
});

Checkout my notices-screen repo for a way to display it on a TV.