New:Socket for Asana Is Now Available.Learn more
Get Started

reverse-repomix

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reverse-repomix

Extract individual source files from repomix output back into a directory structure

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
3
50%
Maintainers
1
Weekly downloads
 
Created
Source

reverse-repomix

Extract individual source files from repomix output back into a directory structure.

Install

npm install reverse-repomix

CLI Usage

npx reverse-repomix <input-file> [--output-dir ./output]

Options

FlagDescriptionDefault
--output-dir, -oOutput directory./output
--help, -hShow help

Programmatic API

import { parseRepomix, writeFiles } from "reverse-repomix";

const text = fs.readFileSync("repomix-output.txt", "utf-8");
const files = parseRepomix(text);
// files = [{ path: "src/index.ts", content: "..." }, ...]

const { written, skipped } = writeFiles(files, "./output");

Supported Formats

  • XML-style<file path="path/to/file">content</file>
  • Separator-style==== / File: path / ==== / content
  • Fenced code blocksFile: path / ```content```

License

MIT

Keywords

repomix

FAQs

Package last updated on 02 Mar 2026

Related posts