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

epfl-unit-api

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

epfl-unit-api

EPFL Unit API

latest
Source
npmnpm
Version
4.0.1
Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

EPFL Unit API

EPFL Unit API.

Build Status Coverage Status Apache License 2.0 NPM Version

Install

npm i epfl-unit-api --save

Usage

const epflUnitApi = require('epfl-unit-api');

epflUnitApi.findUnitByName('mws').then((unit) => {
  console.log(unit.code);      // => 13033
  console.log(unit.name);      // => 'Middleware Services'
  console.log(unit.unitPath);  // => 'EPFL VPO VPO-SI ITOP ITOP-MWS'
}).catch((err) => {
  console.log(err);
});

epflUnitApi.findUnitByCode(13030, 'en').then((unit) => {
  console.log(unit.acronym);   // => 'ISAS-FSD'
  console.log(unit.name);      // => 'Full-Stack Development'
  console.log(unit.unitPath);  // => 'EPFL VPO VPO-SI ISAS ISAS-FSD'
}).catch((err) => {
  console.log(err);
});

API

.findUnitByName(unit, language)

Type: function

Returns a Promise with the unit as parameter.

unit

Type: string

The name of an EPFL unit.

language

Type: string
Default: en

Supported languages are English (en) and French (fr).

.findUnitByCode(code, language)

Type: function

Returns a Promise with the unit as parameter.

code

Type: number

The code of an EPFL unit.

language

Type: string
Default: en

Supported languages are English (en) and French (fr).

Contributing

Contributions are always welcome.

See Contributing.

Developer

  • William Belle

License

Apache License 2.0

(c) William Belle, 2019-2024.

See the LICENSE file for more details.

Keywords

EPFL

FAQs

Package last updated on 31 May 2024

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