Write and manage LLM prompts in .pmt files
npm install dotpmtdotpmt?dotpmt solves this by letting you:
.pmt files
{{input}} for lightweight templating
bash
npm install dotpmt
`
📁 What is a .pmt file?
A .pmt file is just a plain text file with an optional templating syntax:
`
summarize.pmt
Summarize the following:
{{input}}
`
You can store .pmt files anywhere in your project, commonly in a prompts/ folder.
Usage
`typescript
import { loadPrompt } from "dotpmt";
const prompt = loadPrompt("prompts/summarize.pmt", {
input: "YOUR LONG TEXT",
});
console.log(prompt);
``