Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function run(context) {
const url = NSURL.URLWithString('file://' + context.jsonPath.replace(' ', '%20'));
const data = NSData.dataWithContentsOfURL(url);
const content = NSString.alloc().initWithData_encoding_(data, NSUTF8StringEncoding);
asketch2sketch(context, [JSON.parse(content)]);
}