@dxfjs/parser
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

parser

A dxf parser it parse dxf content to a readable javascript object.

CI

Installation

pnpm add @dxfjs/parser

Get started

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))

Progress

  • [x] Parse HEADER section.

  • [x] Parse CLASSES section.

  • [x] Parse TABLES section.

  • [x] Parse BLOCKS section.

  • [x] Parse ENTITIES section.

    Supported entities
    • [x] 3DFACE
    • [x] 3DSOLID
    • [x] ARC
    • [x] CIRCLE
    • [x] ELLIPSE
    • [ ] HATCH
    • [x] INSERT
    • [x] LINE
    • [x] LWPOLYLINE
    • [x] POINT
    • [x] POLYLINE
    • [x] SOLID
    • [x] SPLINE
    • [x] TEXT
  • [ ] Parse OBJECTS section.

Readme

Keywords

Package Sidebar

Install

npm i @dxfjs/parser

Weekly Downloads

3

Version

0.3.2

License

MIT

Unpacked Size

517 kB

Total Files

10

Last publish

Collaborators

  • tarikjabiri