Git Product home page Git Product logo

tenhou-log's Introduction

tenhou-log

天鳳形式の牌譜を電脳麻将形式に変換する

インストール

$ npm i -g @kobalab/tenhou-log

使用例

コマンドラインから

$ tenhou-log 2016031822gm-0009-10011-896da481

変換サーバとして起動

$ tenhou-log-server &
$ curl -s http://127.0.0.1:8001/tenhou-log/2016031822gm-0009-10011-896da481.json

使用方法

tenhou-log [--title=title] [--xml] logid[:title] ...

--title, -t
牌譜タイトルを指定する
--xml, -x
無変換の天鳳の牌譜(XML形式)を取得する

tenhou-log-server

--port, -p
変換サーバを起動するポート番号 (デフォルト値は 8001)
--baseurl, -b
変換サーバに割り当てるURL(デフォルト値は /tenhou-log/)
--docroot, -d
変換サーバに割り当てるコンテンツの場所 (デフォルトではコンテンツは割り当てない)

URL

/tenhou-log/logid.json[:title]
牌譜IDで指定した牌譜を電脳麻将形式で取得する
/tenhou-log/logid.xml
牌譜IDで指定した牌譜を天鳳の形式で取得する

ライセンス

MIT

作者

Satoshi Kobayashi

tenhou-log's People

Contributors

kobalab avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.