Typescript

Overview

TypeScript / JavaScript library for reading, writing and manipulating .duc CAD files — backed by SQLite.

⚠️

This page is subject to change as the project is still in development.

How it works

A .duc file is a standard SQLite database. ducjs compiles to WebAssembly and uses an embedded SQLite engine so it works in Node.js, Deno, Bun and the browser without any native dependencies.

Installation

npm install ducjs
# or
bun add ducjs
 
# or any other JavaScript package manager

Basic Usage

import { DucFile } from 'ducjs';
 
const doc = await DucFile.open('drawing.duc');
const elements = await doc.elements();
console.log(elements);
Edit on GitHub

Last updated on