0.1.4 • Published 6 years ago

fumio v0.1.4

Weekly downloads
8
License
MIT
Repository
github
Last release
6 years ago

fumio

Build Status bitHound Overall Score bitHound Dependencies bitHound Dev Dependencies

with Nightmare.js

Note

if you use headless browser, read this post.

How to run nightmare.js on google appengine for node.js - Stack Overflow

Install

npm i fumio -S

Usage

const fumio = require('fumio');

API

SaitamaCityLibrary

getReservingBooks()

new fumio.SaitamaCityLibrary(CARD_NUMBER, PASSWORD, [nightmareOpts]).getReservingBooks().then(books => console.log(books));

Output (example):

[
  {
    title: 'ファスト&スロー-あなたの意思はどのように決まるか?-下(ハヤカワ文庫 NF 411)',
    data: {
      availability: '受取待ちです',
      storageTerm: '2016年10月1日'
      }
  }
]

getRentingBooks()

new fumio.SaitamaCityLibrary(CARD_NUMBER, PASSWORD, [nightmareOpts]).getRentingBooks.then(books => console.log(books));

Output (example):

[
  { title: 'この一冊で全部わかるネットワークの基本(Informatics & IDEA イラスト図解式 わかりやすさにこだわった)',
    data:
     { checkoutDate: '2016年9月11日',
       canExtend: '延長可能',
       due: '2016年9月25日' } },
  { title: 'Go言語によるWebアプリケーション開発',
    data:
     { checkoutDate: '2016年9月18日',
       canExtend: '延長可能',
       due: '2016年10月2日' } },
  { title: 'スッキリわかるJava入門 実践編 第2版',
    data:
     { checkoutDate: '2016年9月18日',
       canExtend: '不可',
       due: '2016年10月2日' } },
  { title: 'ネットワーク超入門講座-現場の基本を集中マスター スイッチ、ルータ、セキュリティからIP電話まで- 第3版',
    data:
     { checkoutDate: '2016年9月18日',
       canExtend: '不可',
       due: '2016年10月2日' } }
]

LICENSE

MIT

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

8 years ago

0.0.1

8 years ago