# calil

> Easy to use calil api with typescript

Latest version **0.1.3** (published 2020-10-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install calil
pnpm add calil
yarn add calil
bun add calil
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2020-10-14 |
| First published | 2020-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.5 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Hiro Kojima |
| Maintainers | hirokoji |
| Keywords | typescript, jest, eslint, node |

## Links

- npm: https://www.npmjs.com/package/calil
- Repository: https://github.com/hirokoji/calil
- Issues: https://github.com/hirokoji/calil/issues
- npm.io page: https://npm.io/package/calil

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.19.2

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.1.3 (latest) — 2020-10-14
- 0.1.2 — 2020-06-16
- 0.1.1 — 2020-06-14
- 0.1.0 — 2020-06-14

## README

# calil

This script help calil api easier.

## Install

```shell script
$ npm install calil
```

## Usage

If you write code like below,

```typescript
import {Calil} from "calil";

const main = async () => {

    const calil = new Calil('YOUR_SECRET_KEY');

    const pref = '愛知県';
    const cities = await calil.getAllCities(pref);
    const city = cities['な'][1];

    const libraries = await calil.getLibraries(pref, city);
    const systemid = libraries[4].systemid;

    const isbn = '4834000826';
    const books = await calil.checkBookAvailability(isbn, systemid);
    console.log(books);
}

main();

```

you could get result like below
```shell script
$ npm start

[
  { libraryName: '鶴舞', status: '貸出可' },
  { libraryName: '熱田', status: '貸出可' },
  { libraryName: '天白', status: '貸出中' },
  { libraryName: '北', status: '貸出可' },
  { libraryName: '徳重', status: '貸出可' },
  { libraryName: '山田', status: '貸出可' },
  { libraryName: '緑', status: '貸出可' },
  { libraryName: '志段味', status: '貸出可' },
  { libraryName: '守山', status: '貸出可' },
  { libraryName: '港', status: '貸出可' },
  { libraryName: '楠', status: '貸出可' },
  { libraryName: '東', status: '貸出可' },
  { libraryName: '中村', status: '貸出中' },
  { libraryName: '南', status: '貸出中' },
  { libraryName: '中川', status: '貸出中' },
  { libraryName: '名東', status: '貸出可' },
  { libraryName: '瑞穂', status: '貸出可' },
  { libraryName: '富田', status: '貸出可' },
  { libraryName: '南陽', status: '貸出可' },
  { libraryName: '西', status: '貸出可' },
  { libraryName: '千種', status: '貸出可' }
]

```

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