Skip to content

Instantly share code, notes, and snippets.

@usame-cetinkaya
usame-cetinkaya / gather.js
Last active December 11, 2024 22:04 — forked from stenuto/gather.js
A simple script to gather, annotate, and copy code to your clipboard
#!/usr/bin/env node
/**
* gather.js
*
* A CLI tool to gather code files from given directories/files, annotate them,
* and copy the resulting annotated code blob into the clipboard.
*
* Usage:
* node gather.js relative/path/to/dir relative/path/to/file.js ...