Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

542 B
Raw Blame
import { toPlaintext, toSearchText } from '../src/lib/convsersions';

try {
  const path = Bun.resolveSync('../../test-files/01.json', import.meta.path);
  const file = Bun.file(path);
  const json = await file.json();
  const plaintext = toPlaintext(json);
  const searchText = toSearchText(json);
  console.log('\n----- snapShotToPlainText ----');
  console.log(plaintext);
  console.log('\n');
  console.log('\n----- snapShotToSeatchText -----');
  console.log(searchText);
} catch (error) {
  console.error('Conversion error:', error);
}