Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const transformDxfToJscad = (options, entry) => {
// console.log('***** transformDxfToJscad',options,entry)
const deserialize = require('@jscad/io').dxfDeSerializer.deserialize
const source = deserialize(entry.source, entry.name, options)
return createJscadEntry(entry, source)
}
const registerDxfExtension = (fs, _require) => {
const deserializer = require('@jscad/io').dxfDeSerializer
_require.extensions['.dxf'] = (module, filename) => {
const content = fs.readFileSync(filename, 'utf8')
const parsed = deserializer.deserialize(content, filename, { output: 'geometry' })
module.exports = parsed
}
}
const unRegisterDxfExtension = (fs, _require) => {