@apounited/mac
v1.2.0
Published
Crawls and extracts data from the Mauve API.
Downloads
871
Readme
@apounited/mac
Mauve API-Crawler (MAC)
Crawls and extracts data from the Mauve API
Commands
Crawl
The crawlers can be invoked via bunx, pnpx or npx with @apounited/mac.
Data is saved to
./storagerelative to the execution path.
Pin to specific version with
@apounited/[email protected].
Bun
bunx @apounited/mac@latest crawl customers --username demo --password 'demo'Node
npx -y @apounited/mac@latest crawl customers --username demo --password 'demo'Available crawl endpoints: categories, customers, documents, products.
| Options | Short | Required | Values | Description |
| ---------------- | ----- | ---------- | ------------ | -------------------------------- |
| --username | -u | true | string | Mauve Customer ID |
| --password | -p | true | string | Mauve API Password |
| --format | -f | optional | json csv | Export file format |
| --max-requests | -r | optional | number | Maximum number of crawl requests |
CI
Runs crawl command using Environment Variables instead of CLI arguments.
bunx @apounited/mac ciClean
Deletes ./storage directory relative to the execution path.
bunx @apounited/mac cleanDevelopment
Run the main CLI entry point without building:
bun dev crawl customers --username demo --password 'demo'Production
Build dist files:
bun run build