1.0.0 • Published 4 years ago
luajson-exp v1.0.0
Installation
npm install luajson-exp
功能
将luajson 转换位常规json文件
依赖
npm i luaparse
npm i lodash
使用疑问 联系
挨踢狗 Q 490635087
使用
const { format, parse } = require('lua-json')
const _luajson = ` ActorExRingConfig={
[2] = {
id = 2,
openDay = 6,
openVip = -1,
openYb = 2500,
useYb = 2500,
order = 5,
mtCombat = 0,
needLevel = 999,
needZs = 0,
name = "神力戒指",
effid = 1004,
icon = "tttejie_json.tj_24",
explain = LAN.ITEM.d261001,
wexplain = "激活神力特戒获得多倍伤害",
jihuotj = "jtj_24_png",
skillicon = "tejie_icon0_png",
},
}`
parse(_luajson)