function stripMetaProps(tokens, options) {
  const sdMetaProps = ['attributes', 'filePath', 'name', 'path', 'comment'];
  const { stripMeta, usesDtcg } = options;
  let opts = /** @type {StripMetaOptions} */ ({ usesDtcg });

  if (stripMeta) {
    if (stripMeta === true) {
      opts.strip = sdMetaProps;
    } else {
      opts = {
        usesDtcg: usesDtcg ?? false,
        ...stripMeta,
      };
    }
    tokens = stripMetaUtil(tokens, opts);
  }
  return tokens;
}
Strip meta properties from tokens object

@param {Tokens} tokens
@param {Config & LocalOptions & { stripMeta: boolean | StripMetaOptions}} options