1.0.3 • Published 3 years ago
schools-index v1.0.3
Schools Index
You can use this package to access to the italian school index.
Unofficial package
Installation
npm i schools-index --save
Usage
Importing
const Index = require("school-index").SchoolIndex;
or
const { SchoolIndex } = require("school-index");
Available functions
Get schools without any filter
All schools
const ... = await Index.getAllSchools();
Fixed amount
const ... = await Index.getAllSchools(number);
Get school by his code
const ... = await Index.getSchoolByCode(code);
Get schools by his country
All schools
const ... = await Index.getSchoolsByRegion(region);
Fixed amount
const ... = await Index.getSchoolsByRegion(region, number);
Get schools by his district
All schools
const ... = await Index.getSchoolsByDistrict(district);
Fixed amount
const ... = await Index.getSchoolsByDistrict(district, number);
Get schools by his city
All schools
const ... = await Index.getSchoolsByCity(city);
Fixed amount
const ... = await Index.getSchoolsByCity(city, number);
Get schools by his cap
All schools
const ... = await Index.getSchoolsByCap(cap);
Fixed amount
const ... = await Index.getSchoolsByCap(cap, number);