New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dxf-parser

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dxf-parser - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

dist/dxf-parser.js

2

package.json
{
"name": "dxf-parser",
"version": "0.1.2",
"version": "0.1.3",
"description": "Parse dxf files into a readable, logical js object.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -6,2 +6,4 @@

Also, keep an eye on [three-dxf](https://github.com/gdsestimating/three-dxf), a browser module for rendering the output of Dxf-Parser in the browser.
#### Install

@@ -11,8 +13,12 @@ ```

```
Browsers -- As of 0.1.3 standalone browserify version is in the dist/ folder. Copy it out of the install directory or just download it from the GitHub repo directly. We may evetually publish this to bower, but the build environment needs a little work first.
#### Usage
```
// Grab fileText in node.js or browser
var fileText = ...;
var parser = new DxfParser();
try {
var dxf = parser.parseSync(fs.readFileSync(INPUT_FILE_PATH, 'utf8'));
var dxf = parser.parseSync();
}catch(err) {

@@ -24,2 +30,3 @@ return console.error(err.stack);

#### Run Samples
node.js
```

@@ -30,17 +37,22 @@ node samples/parseSync

#### Current Version v0.1.1
* Support
* Headers
* Most 2D entities
* Layers
* LType table
* Blocks Tables (not inserts)
* Some Text
* Does not yet support
* Attributes
* 3DSolids
* All types of Leaders
* MText
* other less common objects and entities.
browser - the [three-dxf repo](https://github.com/gdsestimating/three-dxf) has a sample for viewing dxf cad in the browser
#### What's Supported
Support
* Header
* Most 2D entities
* Layers
* LType table
* Block Tables (not inserts)
* Some Text
Does not yet support
* Attributes
* 3DSolids
* All types of Leaders
* MText
* other less common objects and entities.
#### Run Tests

@@ -56,2 +68,2 @@ ```

#### Contributors
bzuillsmith@gdsestimating.com
bzuillsmith@gdsestimating.com

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc