run-sketch-plugin
Run a Sketch plugin.
import runSketchPlugin from 'run-sketch-plugin';
runSketchPlugin({
commandIdentifier: 'main',
bundleURL: 'path/to/bundle.sketchplugin',
}).then({ stderr, stdout }) => {
console.log(stdout)
}
Run a Sketch plugin by name & bundle URL
Run a Sketch plugin.
import runSketchPlugin from 'run-sketch-plugin';
runSketchPlugin({
commandIdentifier: 'main',
bundleURL: 'path/to/bundle.sketchplugin',
}).then({ stderr, stdout }) => {
console.log(stdout)
}