netanalyzer/utils/formatter.js
Joseph McQueen 459301cc4d chore: Phase 0 initial hygiene
- Initialize git repository
- Add comprehensive .gitignore (protects .env and secrets)
- Fix package.json (correct main entry, add metadata)
- Expand .env.example with all required variables and comments
- Add README.md with architecture, setup, and commands
- Clean up empty scaffolding directories (logs removed, agents/models marked)
- Backup previous .env file locally

This establishes a safe foundation before further development.
2026-06-24 13:32:37 -04:00

15 lines
No EOL
652 B
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function formatStoreReport(location, storeNumber) {
let msg = `### Store ${storeNumber} - ${location.name || 'Unknown'}\n\n`;
msg += `** Details**\n`;
msg += `${location.address || ''}\n`;
if (location.address2) msg += `${location.address2}\n`;
if (location.address3) msg += `${location.address3}\n`;
msg += `${location.city || ''}, ${location.state || ''} ${location.postal_code || ''} ${location.country_code || 'US'}\n`;
msg += `Phone: ${location.phone || 'N/A'}\n`;
msg += `District ID: ${location.district_id || 'N/A'} Region ID: ${location.region_id || 'N/A'}\n`;
return msg;
}
module.exports = { formatStoreReport };