Files
nodejs.esm-library/tools/show-annotations.sh

12 lines
387 B
Bash
Executable File

#!/usr/bin/env bash
#NOTE: This tool require you to install https://gitea.efforting.tech/mikael-lovqvist/shell-utils but you could remove the last line if you don't want that.
#Example use: From the source-directory run ../tools/show-annotations.sh
grep --color=always \
-rne '//[A-Z ]*:' \
--include "*.mjs" \
--exclude-dir node_modules \
| grep-mtime-sorter | ansi-trunc -l 250