@minofrk/msf-pretty-print
v0.0.2
Published
An opinionated pretty-printer for MSF format.
Downloads
7
Readme
@minofrk/msf-pretty-print
MSF 形式の pretty-print をするライブラリです。
msfPrettyPrint(state);
/*
{
"sast": "sorn",
"arxe": {
"txifol": ["lin", "len", "mat", "rez", "pin", "ket"],
"evol": null
},
"sorn": {
"txifol": ["vio", "fav", "mik", "lis", "mel"],
"evol": null
},
"ele": [
[ null, null, null, null, null, null, null],
["rav", null, null, "mir", null, "jil", "tan"],
[ null, null, null, null, "tem", null, "nen"],
["din", "dia", null, null, null, null, null],
[ null, null, null, "zan", "gil", null, null],
["pal", null, "ful", null, null, null, "ruj"],
[ null, "dyu", null, "ser", null, null, "ral"]
],
"korol": ["ruj"]
}
*/
Install
npm install @minofrk/msf-pretty-print
Usage
import msfPrettyPrint from '@minofrk/msf-pretty-print';
msfPrettyPrint(/* State | Move | MSFType */);
License
See LICENSE