/Sukejuuru

πŸ“… Nodejs module for cal.syoboi.jp

Primary LanguageJavaScriptMIT LicenseMIT

Sukejuuru

Nodejs module for cal.syoboi.jp

No production dependencies, pure Node.js!

Install

npm install sukejuuru --save

Usage

const sukejuuru = new Sukejuuru()

sukejuuru.get(6, "2018-02-26").then(
    (res) => {
        console.log(res)
    }, (err) => {
        console.log(err)
    }
)

Example output

[ { tid: '1765',
    stTime: '2018-02-26T06:00:00.000Z',
    count: '25',
    title: 'γ”ε§‰εΌŸη‰©θͺž' },
{ tid: '3666',
    stTime: '2018-02-26T07:00:00.000Z',
    count: '25',
    title: 'ζ‰‹θ£ε‰£ζˆ¦ιšŠγƒ‹γƒ³γƒ‹γƒ³γ‚Έγƒ£γƒΌ' },
{ tid: '1903',
    stTime: '2018-02-26T07:15:00.000Z',
    count: '',
    title: 'はγͺかっぱ' },
{ tid: '1696',
    stTime: '2018-02-26T07:30:00.000Z',
    count: '100',
    title: 'εΉ½β˜†ιŠβ˜†η™½ζ›Έ' },
    ...
]

Testing

npm test

Building

npm run build