Find and Execute Package.json Scripts the Easy Way

How to Quickly Find and Execute Scripts in a Large package.json Sometimes, package.json’s scripts section gets very long - especially in a monorepo. Fortunately, fzf + jq makes a great combo to quickly find and execute package.json’s scripts. Prerequisites You will need the following CLI: jq: a utility to work with JSON files fzf: a powerful, versatile fuzzy finder TL;DR: #!bin/bash # Display the list of npm scripts in a fuzzy finder to execute jq -r '....

2 October 2024 · 1 min · Aloys

Bulk Archive Github Repositories

Clean Up Your GitHub Profile by Bulk Archiving Repos If you have been on github for more than a few months, you most likely have been accumulating repositories. While it’s great to see your progress, you might not want older, unfinished projects cluttering your profile. Instead of deleting them and losing your stats, you can archive them. If you are not embarassed of your former self, you are not growing fast enough....

1 October 2024 · 2 min · Aloys