npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

geongei

v0.0.1

Published

Machine-rent calendar parser for 건대게임천국 Game center

Downloads

3

Readme

건게이

대여 정책 제발

Usage

const Geongei = require('geongei')

const FORMAT = 'M월 D일 H시'

Geongei({
  year: 2017,
  month: 1
}, (e, c) => {
  if(e) return console.error(e)

  c.rents[2017][1].forEach(day => {
    day.forEach(_ => {
      console.log(`#${_.aid}: ${_.start.format(FORMAT)}부터 ${_.totalDuration}시간 (${_.comment})`)
      for(let k in _.devices) {
        let v = _.devices[k]
        console.log(`* ${k}: ${v.duration || _.totalDuration}시간 ${v.count || 1}대`)
      }
    })
  })
})
...
#57750: 1월 22일 9시부터 2시간 (**님 예약.)
* sdvx: 2시간 2대
#57757: 1월 23일 10시부터 6시간 (*****님 예약.)
* iidx: 6시간 1대
#57744: 1월 24일 9시부터 4시간 (******** 님 예약.)
* iidx: 4시간 1대
#57730: 1월 27일 10시부터 3시간 (**님 예약.)
* sdvx: 3시간 1대
#57730: 1월 28일 10시부터 3시간 (**님 예약.)
* sdvx: 3시간 1대
#57730: 1월 29일 10시부터 3시간 (**님 예약.)
* sdvx: 3시간 1대
#57753: 1월 30일 11시부터 4시간 (*님 예약.)
* sdvx: 4시간 1대
#57730: 1월 30일 11시부터 2시간 (**님 예약.)
* sdvx: 2시간 1대

Docs

Geongei (GeongeiFetcher)

Geongei([option,] callback)

  • option: Object
    • year
    • month
    • collection: if it's GeongeiCollection, callback will provide merged collection.
  • callback: function
    • e: error (from request)
    • c: collection

GeongeiCollection

  • .rents: Array of (Array of Rent). Day of Month is used to index.
  • #append(year, month, raw): Get returnValue.todo, parse, and save them.
  • #merge(collection): Merge collection onto this collection.
  • .today: Today's Rents.
  • .tomorrow: Tomorrow's Rents. false if tomorrow is next month, etc.

Rent

  • .aid: article id, naver cafe-related.
  • .sid: schedule id, naver cafe-related.
  • .start, end: moment object
  • .date: date of month, of start time
  • .comment: related comment (usually 'who rented this device')
  • .totalDuration: end - start, in hour
  • .devices: Object
    • key: sdvx, iidx, jubeat, drum
    • value:
      • duration: in hour, if specified
      • count: count of device, default 1