1.0.3 • Published 2 years ago

dxf2json v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

dxf2json

NPM version NPM downloads Build status

convert dxf file into json or geojson format

Getting started

npm install dxf2json --save
const fs = require('fs')
const { DxfParser, toGeojson } = require('dxf2json')

new DxfParser().init('./sample/file2.dxf' , 'out.json')
.then(result=>{
    return result 
})

const content = fs.readFileSync('./sample/file2.dxf', 'utf-8')
new DxfParser().parseContent(content)
.then(result=>{
    return toGeojson(result) 
})

references:

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago