I'm trying to build a plugin to export selected Artboard as PNG along with a JSON file containing frame data of each layer in the Artboard. My intention is to take forward the JSON data and import it into another in-house tool.
I've tried using the general
fs node module which doesn't seem to work as I get the
NSInvalidArgumentException: fs is not a core package on running the plugin.
Is there any other way to write data to a file inside a sketch plugin?
What else can I do to troubleshoot this situation?
What more information can I provide from my side about the plugin I'm building to help you explain the situation better?