# schools-index

> A package that allows you surfing the italian school index.

Latest version **1.0.3** (published 2021-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install schools-index
pnpm add schools-index
yarn add schools-index
bun add schools-index
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-04-11 |
| First published | 2021-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 31.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nicolò Rancan |
| Maintainers | nicolo-rancan |

## Links

- npm: https://www.npmjs.com/package/schools-index
- npm.io page: https://npm.io/package/schools-index

## Recent versions

- 1.0.3 (latest) — 2021-04-11
- 1.0.2 — 2021-04-11
- 1.0.1 — 2021-04-11

## README

# Schools Index

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

<br />

[![NPM](https://nodei.co/npm/schools-index.png?compact=true)](https://npmjs.org/package/schools-index)

##### You can use this package to access to the italian school index.

###### Unofficial package

## Installation

```js
npm i schools-index --save
```

## Usage

### Importing

```js
const Index = require("school-index").SchoolIndex;
```

or

```js
const { SchoolIndex } = require("school-index");
```

### Available functions

#### Get schools without any filter

<br />

##### All schools

```js
const ... = await Index.getAllSchools();
```

#### Fixed amount

```js
const ... = await Index.getAllSchools(number);
```

<br />

#### Get school by his code

```js
const ... = await Index.getSchoolByCode(code);
```

<br />

#### Get schools by his country

##### All schools

```js
const ... = await Index.getSchoolsByRegion(region);
```

##### Fixed amount

```js
const ... = await Index.getSchoolsByRegion(region, number);
```

<br />

#### Get schools by his district

##### All schools

```js
const ... = await Index.getSchoolsByDistrict(district);
```

##### Fixed amount

```js
const ... = await Index.getSchoolsByDistrict(district, number);
```

<br />

#### Get schools by his city

##### All schools

```js
const ... = await Index.getSchoolsByCity(city);
```

##### Fixed amount

```js
const ... = await Index.getSchoolsByCity(city, number);
```

<br />

#### Get schools by his cap

##### All schools

```js
const ... = await Index.getSchoolsByCap(cap);
```

##### Fixed amount

```js
const ... = await Index.getSchoolsByCap(cap, number);
```

---
_Source: https://npm.io/package/schools-index · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
