How to identify svg's in figma plugin from node data

I am trying to identify svg elements in the node json data being returned from figma plugin api for context to identify Images

if (node.type === 'IMAGE') {}

But i don’t know how to get svg’s

There is no node type like SVG in Figma. You need to check for example the fillGeometry and vectorPaths properties of the node.

@AroicX Hello. I need exactly this. Did you find an answer to your question?