UNPKG

lina-infratech-cli

Version:

A CLI tool for Lina Infratech Developers

10 lines (8 loc) 197 B
import * as fs from 'fs' export function writeFile(fileName: string, content: string) { try { fs.writeFileSync(fileName, content) } catch (error) { new Error('Could write file') } }