Skip to content

Instantly share code, notes, and snippets.

View bradzacher's full-sized avatar

Brad Zacher bradzacher

View GitHub Profile
diff --git a/node_modules/prettier/index.js b/node_modules/prettier/index.js
index 4d15c89..aef7249 100644
--- a/node_modules/prettier/index.js
+++ b/node_modules/prettier/index.js
@@ -48363,6 +48363,12 @@ var parsers$6 = {
return require$$1$3.parsers.flow;
},
+ // JS - hermes - flow
+ get hermes() {
@bradzacher
bradzacher / script.js
Last active August 31, 2023 01:13
breakdown NPM downloads by major version
const majors = {};
const minors = {};
let total = 0;
const table = document.querySelectorAll('div > ul.list.ml0.pl0')[1];
for (const row of table.childNodes.values()) {
const downloadsCell = row.querySelector('.downloads');
if (!downloadsCell) { continue; }
const version = row.childNodes[0].innerText.split('.');