Created
January 21, 2025 14:27
-
-
Save ravshansbox/460b9f86b28ee23cb791337da32bcaed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from 'node:fs'; | |
fs.readdirSync('./in') | |
.map((file) => { | |
const name = file | |
.replace(/\.(otf|ttf)/, '') | |
.match(/[A-Z][a-z]+/g) | |
.join(' '); | |
return `/FontPatcher/font-patcher --outputdir ./out --name "${name}" --complete --mono ./in/${file};`; | |
}) | |
.forEach((file) => void console.log(file)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment