rollup-plugin-flatten-dir

JSON →
library 1.0.1 ·javascript
verified Apr 27, 2026

Rollup and Vite plugin that flattens a directory's file contents into a `Record<string, string>` object. Version 1.0.1 is the current stable release, with no active development observable. It resolves a directory, reads file contents, filters by include/exclude glob patterns, and generates an ESM module with a default export mapping relative file paths to their raw string contents. Optionally generates TypeScript declaration files. Differentiates from similar plugins by focusing on raw string contents rather than module transforms.

total hits 15
actors 5 distinct systems
last hit 5d ago human
GPTBot
5
MetaBot
3
ClaudeBot
1
Search engines
1
Humans
2

top countries 🇺🇸 United States · 🇨🇦 Canada · BD · 🇬🇧 United Kingdom