@typecad/typecad
Version:
🤖programmatically 💥create 🛰️hardware
21 lines (20 loc) • 797 B
JavaScript
export { Component } from './component';
export { Schematic } from './schematic';
export { Pin } from './pin';
export { I2C, UART, USB, Power } from './buses';
export { PCB, TrackBuilder } from './pcb';
export { KiCAD, kicad_cli_path, kicad_path } from './kicad';
export { ComponentRegistry } from './component_registry';
import chalk from 'chalk';
import { KiCAD, kicad_cli_path, kicad_path } from './kicad';
import { exit } from 'node:process';
// get KiCAD's installation path
new KiCAD();
console.log('🏁 ' + chalk.whiteBright.bold('type') + 'CAD starting...');
if (kicad_path && kicad_cli_path) {
}
else {
console.log('- ', chalk.red.bold('👺 Error: KiCAD not found, go to https://github.com/typecad/typecad/wiki/typecad.json for more information'));
exit();
}