(filepath, data)
| 14 | import path from 'path'; |
| 15 | |
| 16 | function writeToFile(filepath, data) { |
| 17 | let buffer = Buffer.from(data); |
| 18 | fs.writeFileSync(filepath, buffer); |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Takes an icon directory and outputs React Spectrum wrapped icons to the output directory. |