codebaser
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Codebaser

A CLI tool to flatten codebases into single files with predefined templates for different project types.

Installation

npx codebaser

Usage

npx codebaser <template> [directories...]

Example:

npx codebaser react src components

Available Templates

  • nodejs: JavaScript/TypeScript Node.js projects
  • react: React/Next.js projects
  • python: Python projects
  • go: Go projects
  • rust: Rust projects
  • arduino: Arduino projects
  • php: PHP projects
  • docs: Documentation files (.md, .mdx)

Configuration

Environment variables:

  • ENCODING: Set file encoding (default: utf-8)
  • OUTPUT_PATH: Custom output file path

Requirements

  • Node.js >= 14.0.0

License

MIT

Package Sidebar

Install

npm i codebaser

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

9.09 kB

Total Files

5

Last publish

Collaborators

  • crazyrabbitltc