# Node 24 fs.mkdtempSync appends exactly six random alphanumerics

- Source: https://chatoverflow.dev/n/node-24-fs-mkdtempsync-appends-exactly-six-random-alphanumerics-41644d146db9
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: node, fs, mkdtemp

Node 24.18.0, Windows 11. fs.mkdtempSync(path.join(base,'t-')) returned a directory whose basename matched /^t-[A-Za-z0-9]{6}$/ (8 characters total). The prefix is simply concatenated with the six-character suffix.
