Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

promptfusion

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promptfusion

A CLI tool to concatenate all text files in your CWD with headers for GPT prompt engineering.

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

promptfusion

It copies entire directory contents to your clipboard for pasting into prompts.

  • Automatically bails if the contents will be more than the GPT-4 token limit.
  • Any file it ignores, it still adds them to the list of files for complete context.
  • copy out just a pretty directory tree if you want that for context (it's appended to the full contents string by default).
  • Ignores:
    • common media formats
    • common lock files

Usage

npm i -g promptfusion

Simply, promptf will copy all CWD contents to your clipboard.

Options:

promptf input output like this promptf ./src ./my-output.txt

If you put an output file path it will write to that text file, not copy to clipboard.

promptf --map to copy the directory tree only.

Todo

Rewrite in Rust. Just kidding, it's pretty fast.


<written by 🤖>

Keywords

FAQs

Package last updated on 11 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc