import { readFileSync } from 'node:fs' const d = JSON.parse(readFileSync(new URL('../t51/oi-GAS.json', import.meta.url), 'utf8')).data const b = d.industries.find((x) => x.industry.code === 'GAS') console.log('前 10 条卡片(标题 | 当前读数 | 设施编码):') for (const m of b.metrics.slice(0, 10)) { console.log(` ${m.metricName} | ${m.value} ${m.unit} | ${(m.pointCodes || []).join(',')}`) }