Socket
Book a DemoInstallSign in
Socket

jamia-all-courses

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jamia-all-courses

A helpers for getting all courses available in Jamia Millia Islamia.

1.2.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

All Courses in Jamia

This repo contains index of courses available in Jamia Millia Islamia.

Installation

yarn/npm: directly install jamia-all-courses

yarn add jamia-all-courses
or
npm install --save jamia-all-courses

Usages

import allCourses from 'jamia-all-courses';
// or
// const allCourses = require('jamia-all-courses');

allCourses.map(({name: category, courses}) => {
    console.log('- ' + category);
    courses.map(({name: course, specializations}) => {
        console.log('    - ' + course);
        specializations.map(({name: specialization, code}) => {
            console.log('        - ' + specialization, code);
        })
    })
});

Or import specific programme:

  • doctoralProgrammes
  • mastersProgrammes
  • postgraduateDiplomaProgrammes
  • undergraduateProgrammes
  • advancedDiplomaProgrammes
  • diplomaProgrammes
import {undergraduateProgrammes} from 'jamia-all-courses';

undergraduateProgrammes.courses.map(({name: course, specializations}) => {
        console.log('    - ' + course);
        specializations.map(({name: specialization, code}) => {
            console.log('        - ' + specialization, code);
        })
    })
  • getCourse(hash): [category, course, specialization]

    • Returns array of 3 with their respective labels
  • getCourseName(hash): Returns string of course and specialisation

import {getCourseName, getCourse} from "jamia-all-courses";

console.log(getCourseName('3fc6d'));
// B.Tech. Computer Engineering

console.log(getCourse('3fc6d'));
// ['Undergraduate Programmes', 'B.Tech.','Computer Engineering']
  • getCourse(hash): [category, course, specialization]

    • Returns array of 3 with their respective labels
  • getCourseName(hash): Returns string of course and specialisation

Structure

[{
    name: 'category',
    courses: [{
        name: 'course',
        specializations: [{
            name: 'specialization',
            code: 'hash'
        }]
    }]
}]

FAQs

Package last updated on 13 Oct 2019

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.