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 🙏

© 2026 – Pkg Stats / Ryan Hefner

gbf-roomfinder-parse

v0.0.2

Published

:package: `gbf-roomfinder-parse` --- <p align="right"> <a href="https://npmjs.org/package/gbf-roomfinder-parse"> <img src="https://img.shields.io/npm/v/gbf-roomfinder-parse.svg?style=flat-square"> </a> <a href="https://travis-ci.org/59naga/gbf-r

Readme

:package: gbf-roomfinder-parse

共闘救援ツイートのオブジェクト変換関数

:inbox_tray: Installation

npm install gbf-roomfinder-parse --save
# or
yarn add gbf-roomfinder-parse

:bulb: Motivation

gbf-roomfinderの特に行数の多かった部分を外部ライブラリ化し、メンテナンスを容易にするため。

:scroll: API

import parse from 'gbf-roomfinder-parse'

parse(str) -> roomData

strをツイートとして、含まれる部屋情報を抽出してオブジェクトを返します。

ツイート内に「マルチバトル参加者募集!」もしくは「Join my Granblue Fantasy raid room!」をふくむ場合、マルチバトル部屋として以下のキーを持つオブジェクトを返します。

  • type 値はraid固定です
  • id 部屋id。6桁の文字列。デフォルト''
  • only 募集対象。「誰でもOK!」の場合、空文字''を返します。デフォルト''
  • readyCheck バトル開始承認。デフォルトtrue
  • max 参戦人数。デフォルト30
  • over 募集ランク。デフォルト0
  • repeat 連続クエスト設定。デフォルト0
  • title コメント。募集リストに表示される部屋名です。デフォルト''
parse("[グラブル]マルチバトル参加者募集!\nルームID:930EBC\n募集対象:誰でもOK\n承認なし\n参戦人数:6人\nRank 140 以上\nプロメテhlお手伝いお願いします(`・∀・´)")
// => { type: 'raid', id: '930EBC', only: '', readyCheck: false, max: 6, over: 140, repeat: 0, title: 'プロメテhlお手伝いお願いします(`・∀・´)' }

parse("Join my Granblue Fantasy raid room!\nRoom ID: 556707\nAnyone\nReady Check Disabled\nLimit: 30 players\nRank: 101+\nBaha baha")
// => { type: 'raid', id: '556707', only: '', readyCheck: false, max: 30, over: 101, repeat: 0, title: 'Baha baha' }

マルチバトル部屋でない場合、それは共闘クエスト部屋として以下のキーを持つオブジェクトを返します。

  • type 値はcoop固定です
  • id 部屋id。6桁の文字列。デフォルト''
  • only 募集対象。「誰でもOK!」の場合、空文字''を返します。デフォルト''
  • over 募集ランク。デフォルト0
  • title コメント。募集リストに表示される部屋名です。デフォルト''
parse("[グラブル]共闘クエスト参加者募集!\nルームID:DA456\n募集対象・目的:誰でもOK\nRank制限なし\nスラ爆時間貼り15分貼り!理解者のみ")
// => { type: 'coop', id: 'DA456', only: '', over: 0, title: 'スラ爆時間貼り15分貼り!理解者のみ' }

parse("Join my Granblue Fantasy co-op room!\nRoom ID: 6B0E3\nPandemonium\nNo Min. Rank\nキマイラ周回\nニルヴァーナレプリカ出るまで")
// => { type: 'coop', id: '6B0E3', only: 'Pandemonium', over: 0, title: 'キマイラ周回\nニルヴァーナレプリカ出るまで' },

引数が空文字だったり、値が正しく読み取れなかったとき、それぞれのデフォルト値を使用します。

parse('')
// => { type: 'coop', id: '', only: '', over: 0, title: '' }

titleは、その性質上、ツイート時に投稿者が内容を書き加えることが多くあるため、留意してください。(「あと2人です!」など、現状を追記するなど)

:wrench: Development

Requirement global

  • NodeJS v8.2.1
  • Npm v5.3.0
  • Yarn v0.27.5
git clone https://github.com/59naga/gbf-roomfinder-parse
cd gbf-roomfinder-parse/development
yarn install

npm test