ducdev/aliexscrape ? reverse-engineered prompt

Reverse engineered prompt

Build me a small JavaScript tool that takes an AliExpress product ID and returns the product details as JSON.

I want to be able to use it two ways, from code with a simple function call, and from the command line with a command like scrape 32853590425. It should pull useful product info such as the title, store name, product images, description, properties, variant options, and price details, then print or return it in a clean JSON shape.

Keep it easy to install and use, and make sure it works well as a tiny npm package. If there are any current AliExpress page changes or best practices I should account for, look up the latest docs online if you need to. Also include a quick example so I can see how to call it and what the output looks like.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab