A dxf parser it parse dxf content to a readable javascript object.
pnpm add @dxfjs/parser
const { Parser } = require('@dxfjs/parser')
const content = '...' // The dxf content
const parser = new Parser()
parser
.parse(content)
.then((obj) => {
console.log(obj)
// ...
})
.catch((error) => console.error(error))
HEADER
section.CLASSES
section.TABLES
section.BLOCKS
section.[x] Parse ENTITIES
section.
OBJECTS
section.