dxf-parser
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
2077
65
2
55399
9