1 |
|
2 | const fs = require('fs')
|
3 | const path = require('path')
|
4 |
|
5 | module.exports = function (fontsPath) {
|
6 | if (fontsPath) {
|
7 | fs.copyFileSync(
|
8 | path.resolve(__dirname, 'fonts', 'Special-DroidSans-Powerline-NF-Mono.otf'),
|
9 | path.resolve(fontsPath, 'Droid_Sans_Mono_for_Powerline_Plus_Nerd_File_Types_Mono.otf')
|
10 | )
|
11 | } else {
|
12 | console.error('You need to pass in, the path for the fonts')
|
13 | }
|
14 | }
|