Socket
Book a DemoInstallSign in
Socket

eecircuit-engine

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eecircuit-engine

EEcircuit's simulation engine

latest
npmnpm
Version
1.5.5
Version published
Maintainers
1
Created
Source

EEcircuit-engine

Simulation engine for EEcircuit

installation

npm install eecircuit-engine

Usage

import the Simulation class and create a new instance of it.

import { Simulation } from "eecircuit-engine";

const sim = new Simulation();

start the simulation by calling the start method. This will initialize the simulation engine, but it does not run any simulation yet.

await sim.start();

Set your netlist. The netlist is same as ngspice netlist format.

const netlist = `Basic RLC circuit 
.include modelcard.CMOS90

r vdd 2 100.0
l vdd 2 1
c vdd 2 0.01
m1 2 1 0 0 N90 W=100.0u L=0.09u
vdd vdd 0 1.8

vin 1 0 0 pulse (0 1.8 0 0.1 0.1 15 30)
.tran 0.1 5

.end`;

sim.setNetList(netlist);

Run the simulation by calling the runSim method. This will run the simulation and return the result.

const result = await sim.runSim();

You can now access the result of the simulation.

console.log(result);

FAQs

Package last updated on 12 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts