main.ts
includes functions for managing and reading .IntLib files
npm start
will do nothing at the because everything in main.ts is abstracted to a functionnpm test
will run through each .IntLib file, and use a pre-extracted version from 7zip to compare data- The
readIntLib()
function returnsParameters
andRawParameters
.RawParameters
is for testing, and contains the raw contents of Parameters.bin, whereas Parameters contains a JSON representation of Parameters.bin
Returns an object that resembles this:
{
"Parameters": {
"Availability": "Unavailable",
"Comment": "*",
"Component Kind": "Standard",
"Description": "SMD WI-FI IC, ESP32-S2, SINGAL-C",
"Footprint": "QFN40P700X700X90-57T400N",
"Library Reference": "ESP32-S2",
"MF": "Espressif Systems",
"MP": "ESP32-S2",
"Package": "None",
"Price": "None",
"SnapEDA_Link": "https://www.snapeda.com/parts/ESP32-S2/Espressif%20Systems/view-part/4571535/?ref",
"Value": "*",
"Designator": "ESP32-S2",
"Component Type": "Standard",
"Pin Count": "57",
"Height": 0,
"Pad Count": "57"
},
"RawParameters": " �� Availability=In Stock|Check_prices=https://www.snapeda.com/parts/1N4148/Onsemi/view-part/?ref=eda|Comment=*|Component Kind=Standard|Description=Diode Standard 75V 200mA Surface Mount SOD-523F|Footprint=DIOAD829W49L456D191|Library Reference=1N4148|MF=ON Semiconductor|MP=1N4148|Package=AXIAL LEAD-2 ON Semiconductor|Price=None|Purchase-URL=https://pricing.snapeda.com/search/part/1N4148/?ref=eda|SnapEDA_Link=https://www.snapeda.com/parts/1N4148/Onsemi/view-part/?ref=snap|Value=*|Designator=1N4148|Component Type=Standard|Pin Count=2 � Height=0|Pad Count=2 � Height=0|Pad Count=2 ",
"PCBLib": [bytes],
"SchLib": [bytes]
}