UNPKG

449 BJavaScriptView Raw
1#!/usr/bin/env node
2const fs = require('fs')
3const path = require('path')
4
5module.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}