npm.io
1.0.3 • Published 5 years ago

schools-index

Licence
MIT
Version
1.0.3
Deps
0
Size
31.5 MB
Vulns
0
Weekly
0

Schools Index

License: MIT


NPM

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);