Skip to content

Instantly share code, notes, and snippets.

View Mejituu's full-sized avatar

Mejituu Mejituu

View GitHub Profile
@sorrycc
sorrycc / extract-claude-code.mjs
Created March 31, 2026 09:31
Download Claude Code from npm and extract original TypeScript source from its source map. Usage: bun extract-claude-code.mjs [version]
#!/usr/bin/env bun
/**
* Download a specific version of Claude Code from npm,
* then extract the original TypeScript source from its source map.
*
* Usage:
* bun extract-claude-code.mjs [version]
*
* Example: