🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@dxfom/mtext

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dxfom/mtext

A low level DXF MTEXT content parser.

0.4.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

DXF Object Model / MTEXT

A low level DXF MTEXT content parser.

Installation

$ npm i @dxfom/mtext

Usage

import { parseDxfMTextContent } from '@dxfom/mtext'

const content = parseDxfMTextContent(
  String.raw`\A1;\fAIGDT|b0|i0;\H2.5000;\ln\fArial|b0|i0;\H2.5000;68{\H1.3;\S+0,8^+0,1;}`
)
console.log(JSON.stringify(content, undefined, 4))

outputs:

[
   {
      "A": 1
   },
   {
      "f": "AIGDT",
      "b": 0,
      "i": 0
   },
   {
      "H": 2.5
   },
   {
      "L": 0
   },
   "n",
   {
      "f": "Arial",
      "b": 0,
      "i": 0
   },
   {
      "H": 2.5
   },
   "68",
   [
      {
         "H": 1.3
      },
      {
         "S": [
            "+0,8",
            "^",
            "+0,1"
         ]
      }
   ]
]

License

GPL 3.0

Keywords

dxf

FAQs

Package last updated on 22 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts