Last active
October 29, 2025 11:30
-
-
Save dannyvankooten/265327a6c3c5cb48cda8d236341c28dc to your computer and use it in GitHub Desktop.
Revisions
-
dannyvankooten revised this gist
Oct 29, 2025 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ window.fetch('https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&per_page=500&search=forms').then(r => r.json()).then(d => { let sortedPlugins = d.plugins.sort((a, b) => a.downloaded < b.downloaded); console.log("plugins", sortedPlugins); console.log(sortedPlugins.map(p => `${p.name} (${p.slug}): ${Math.round(p.downloaded/1000)}K downloads`).join("\n")); }); -
dannyvankooten revised this gist
Oct 29, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,3 @@ window.fetch('https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&per_page=500&search=forms').then(r => r.json()).then(d => { console.log(d.plugins.sort((a, b) => a.downloaded < b.downloaded)); }); -
dannyvankooten created this gist
Oct 29, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ window.fetch('https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&per_page=500&search=foobar').then(r => r.json()).then(d => { console.log(d.plugins.sort((a, b) => a.downloaded < b.downloaded)); });