Create beautiful code screenshots with syntax highlighting, custom themes, and window controls. Export as PNG for sharing.
Theme Preview1// Welcome to Code Screenshot Generator
2async function fetchData(url) {
3 const response = await fetch(url);
4 if (!response.ok) {
5 throw new Error("Request failed");
6 }
7 const data = await response.json();
8 return data.results.map(item => ({
9 id: item.id,
10 name: item.name,
11 score: item.value * 100
12 }));
13}
13 lines | 323 chars