{"_id":"@charlie-xiao/svg2ttf","_rev":"3-f9502f0aae120be6cc0abbf54814d4f1","name":"@charlie-xiao/svg2ttf","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@charlie-xiao/svg2ttf","version":"0.1.0","keywords":["svg","ttf","font"],"author":{"name":"Yao Xiao","email":"yx2436@nyu.edu"},"license":"MIT","_id":"@charlie-xiao/svg2ttf@0.1.0","maintainers":[{"name":"charlie-xiao","email":"yx2436@nyu.edu"}],"homepage":"https://github.com/Charlie-XIAO/svg2ttf.js#readme","bugs":{"url":"https://github.com/Charlie-XIAO/svg2ttf.js/issues"},"bin":{"svg2ttf":"bin/svg2ttf.js"},"dist":{"shasum":"70165da12fd5789cd566893b797b2bea695eeecb","tarball":"https://registry.npmjs.org/@charlie-xiao/svg2ttf/-/svg2ttf-0.1.0.tgz","fileCount":2,"integrity":"sha512-H4Eb4TWny1qwHCf4G+SPkTWNrqaF0RtQ4GIrinXfCu8OT0y3PxOnJ/IPqLFCWMlpGPCizva4YzLL33TNNBhvOQ==","signatures":[{"sig":"MEQCIAdgoR4UpFB3uPDzOwl/f2kmkfduKHSWX42IFp8Uyd6mAiAJP/kLVAV5nf8TG2lhQdOcguUBkptGz8jSD4L+hutZGA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2272},"type":"module","_from":"file:charlie-xiao-svg2ttf-0.1.0.tgz","engines":{"node":">=20"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"charlie-xiao","email":"yx2436@nyu.edu"},"_resolved":"/tmp/a76a28bb4fb4bd6a5291c0342eb7ebd4/charlie-xiao-svg2ttf-0.1.0.tgz","_integrity":"sha512-H4Eb4TWny1qwHCf4G+SPkTWNrqaF0RtQ4GIrinXfCu8OT0y3PxOnJ/IPqLFCWMlpGPCizva4YzLL33TNNBhvOQ==","repository":{"url":"git+https://github.com/Charlie-XIAO/svg2ttf.js.git","type":"git"},"_npmVersion":"11.6.2","description":"Fix strokes in SVGs and convert them to TTF.","directories":{},"_nodeVersion":"24.12.0","dependencies":{"tmp":"^0.2.5","commander":"^14.0.3","svgtofont":"^6.5.1","oslllo-svg-fixer":"^6.0.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/svg2ttf_0.1.0_1772400590683_0.4916730699291787","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@charlie-xiao/svg2ttf","version":"0.1.1","keywords":["svg","ttf","font"],"author":{"name":"Yao Xiao","email":"yx2436@nyu.edu"},"license":"MIT","_id":"@charlie-xiao/svg2ttf@0.1.1","maintainers":[{"name":"charlie-xiao","email":"yx2436@nyu.edu"}],"homepage":"https://github.com/Charlie-XIAO/svg2ttf.js#readme","bugs":{"url":"https://github.com/Charlie-XIAO/svg2ttf.js/issues"},"bin":{"svg2ttf":"bin/svg2ttf.js"},"dist":{"shasum":"4a8aa962042c1eddcf7611fcfcc61628e21fdfdb","tarball":"https://registry.npmjs.org/@charlie-xiao/svg2ttf/-/svg2ttf-0.1.1.tgz","fileCount":4,"integrity":"sha512-csTT0RD7DW0swkyL0V2/M6/BndjPMZ2gxrxEOPhnYIsNWfjdYiz+CMitjAAgL3H7kxSHZ6pIMK9wZaRlwwN7eA==","signatures":[{"sig":"MEUCIQDzoQLPrVNMSg9XMsJgWafmh1Nx5K8sRr817o3NUX2noAIgb5bwVTDecV1zzyqju3sCqNnFascn/IBk/eZUlChiT+o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4279},"type":"module","_from":"file:charlie-xiao-svg2ttf-0.1.1.tgz","engines":{"node":">=20"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"charlie-xiao","email":"yx2436@nyu.edu"},"_resolved":"/tmp/fe7e24bf8e58639960c3f5822a21180a/charlie-xiao-svg2ttf-0.1.1.tgz","_integrity":"sha512-csTT0RD7DW0swkyL0V2/M6/BndjPMZ2gxrxEOPhnYIsNWfjdYiz+CMitjAAgL3H7kxSHZ6pIMK9wZaRlwwN7eA==","repository":{"url":"git+https://github.com/Charlie-XIAO/svg2ttf.js.git","type":"git"},"_npmVersion":"11.6.2","description":"Fix strokes in SVGs and convert them to TTF.","directories":{},"_nodeVersion":"24.12.0","dependencies":{"tmp":"^0.2.5","commander":"^14.0.3","svgtofont":"^6.5.1","oslllo-svg-fixer":"^6.0.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/svg2ttf_0.1.1_1772402935009_0.48001923624042075","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@charlie-xiao/svg2ttf","version":"0.1.2","description":"Fix strokes in SVGs and convert them to TTF.","type":"module","keywords":["svg","ttf","font"],"author":{"name":"Yao Xiao","email":"yx2436@nyu.edu"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Charlie-XIAO/svg2ttf.js.git"},"bin":{"svg2ttf":"bin/svg2ttf.js"},"engines":{"node":">=20"},"dependencies":{"commander":"^14.0.3","oslllo-svg-fixer":"^6.0.1","svgtofont":"^6.5.1","tmp":"^0.2.7"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_id":"@charlie-xiao/svg2ttf@0.1.2","bugs":{"url":"https://github.com/Charlie-XIAO/svg2ttf.js/issues"},"homepage":"https://github.com/Charlie-XIAO/svg2ttf.js#readme","_integrity":"sha512-j05EZXOpqfX/GpPjefypXoE+OmqSiYXsh41KcjpThfr2GibKsPbljEoAOk5qrEUS1Hnptk7ZkiN9By24ODxScg==","_resolved":"/tmp/2a7697da1da265bd8cd7d5d50880799d/charlie-xiao-svg2ttf-0.1.2.tgz","_from":"file:charlie-xiao-svg2ttf-0.1.2.tgz","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-j05EZXOpqfX/GpPjefypXoE+OmqSiYXsh41KcjpThfr2GibKsPbljEoAOk5qrEUS1Hnptk7ZkiN9By24ODxScg==","shasum":"37bbb3b42556c7e729c46540e8cce79dd993f653","tarball":"https://registry.npmjs.org/@charlie-xiao/svg2ttf/-/svg2ttf-0.1.2.tgz","fileCount":4,"unpackedSize":4549,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD5uujI3e5PdbfiyWECQjuD6pb5zepcOEttnog3gDOj7gIhAKL3cYjTXMoCqmleu7dPn644vZ8NjcTnrlHI3WEyN7to"}]},"_npmUser":{"name":"charlie-xiao","email":"yx2436@nyu.edu"},"directories":{},"maintainers":[{"name":"charlie-xiao","email":"yx2436@nyu.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/svg2ttf_0.1.2_1781436448629_0.5952017358046258"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-01T21:29:50.569Z","modified":"2026-06-14T11:27:28.888Z","0.1.0":"2026-03-01T21:29:50.811Z","0.1.1":"2026-03-01T22:08:55.177Z","0.1.2":"2026-06-14T11:27:28.763Z"},"bugs":{"url":"https://github.com/Charlie-XIAO/svg2ttf.js/issues"},"author":{"name":"Yao Xiao","email":"yx2436@nyu.edu"},"license":"MIT","homepage":"https://github.com/Charlie-XIAO/svg2ttf.js#readme","keywords":["svg","ttf","font"],"repository":{"type":"git","url":"git+https://github.com/Charlie-XIAO/svg2ttf.js.git"},"description":"Fix strokes in SVGs and convert them to TTF.","maintainers":[{"name":"charlie-xiao","email":"yx2436@nyu.edu"}],"readme":"# svg2ttf.js\n\nFix strokes in SVGs using [oslllo-svg-fixer](https://www.npmjs.com/package/oslllo-svg-fixer) then convert them to TTF fonts using [svg2ttf](https://www.npmjs.com/package/svg2ttf).\n\nThis is effectively the same thing [lucide](https://github.com/lucide-icons/lucide) does to generate their icon fonts, and I made this script mainly for my convenience, though it may be useful to others as well.\n\n### Usage\n\n```bash\npnpm dlx @charlie-xiao/svg2ttf -i <input-dir> -o <output-dir> -n <font-name>\n```\n\n### Options\n\n```\n-i, --input <dir>       input SVGs directory\n-o, --output <dir>      output fonts directory\n-n, --font-name <name>  font name\n--trace-resolution [n]  svg fixer trace resolution (default: 800)\n-h, --help              display help for command\n```\n\n### License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md"}