Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interested in using as a library and not using command line #257

Open
mmiscool opened this issue Jan 5, 2025 · 1 comment
Open

Interested in using as a library and not using command line #257

mmiscool opened this issue Jan 5, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@mmiscool
Copy link

mmiscool commented Jan 5, 2025

Hello,
I am working on my own project that dose AI assisted edits to existing files. https://github.com/mmiscool/aiCoder

I would be interested in using this tool as a library with an API.

some thing like:

import {repomix} from 'repomix';

const generatedText = repomix.generateMarkdown("pathToFolder", 
                                               {
                                                 "output": {
                                                   "style": "markdown",
                                                   "removeComments": true,
                                                   "showLineNumbers": true,
                                                   "topFilesLength": 10
                                                 },
                                                 "ignore": {
                                                   "customPatterns": ["*.test.ts", "docs/**"]
                                                 }
                                               });

Is there any plan to support doing this?

@yamadashy
Copy link
Owner

As I mentioned on Discord, this is definitely something I want to support!
https://discord.com/channels/1324644561959522314/1324644562429542427/1325351820129865800

By the way, even while building repomix.com, I also had to do a workaround to call it, so it would be great to provide a more cleaner module for everyone.

@yamadashy yamadashy added the enhancement New feature or request label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants