:cake:位域图示渲染器
npm i bit-fieldconst render = require('bit-field/lib/render');
const onml = require('onml');
const reg = [
{bits: 8, name: 'data'}
];
const options = {
hspace: 888
};
const jsonml = render(reg, options);
const html = onml.stringify(jsonml);
// npx bit-field [options] > alpha.svg…[
{ "name": "IPO", "bits": 8, "attr": "RO" },
{ "bits": 7 },
{ "name": "BRK", "bits": 5, "attr": "RW", "type": 4 },
{ "name": "CPK", "bits": 1 },
{ "name": "Clear", "bits": 3 },
{ "bits": 8 }
]暂无开放 Issues,或尚未同步最近议题。