UNPKG

als-store

Version:

Library for streamlined file management and advanced data caching, featuring intelligent file searching, dynamic cache control, and flexible file operations

8 lines (7 loc) 288 B
const { Store } = require('./index') const root = new Store({ dirPath: __dirname }); (async function () { const { results:docs } = await root.dir('docs').values().get() const content = docs.map(f => f.value).join('\n'); await root.create('readme.md', content).save() })()