index.js
function list (type, filePath) {
  invariant(
    ALLOWED_LIST_TYPES.includes(type),
    `Type '${type}' is not supported by sketchtool`
  );
  return JSON.parse(sketchtoolExec(`list ${type} ${escape(filePath)}`));
}
function list (type, filePath) {
  invariant(
    ALLOWED_LIST_TYPES.includes(type),
    `Type '${type}' is not supported by sketchtool`
  );
  return JSON.parse(sketchtoolExec(`list ${type} ${escape(filePath)}`));
}
function list ( type , filePath ) { invariant ( ALLOWED_LIST_TYPES . includes ( type ) , ` ${ type } ` ) ; return JSON . parse ( sketchtoolExec ( ` ${ type } ${ escape ( filePath ) } ` ) ) ; }
List specific element type from given file
@param  {string} type
@param  {string} filePath
@return {Object}
List specific element type from given file