Skip to content

Create a directory with TypeScript

Advertisements
  
import * as fs from "fs"

function createDirectory(path: string): void {
    fs.mkdirSync(path)
}
See also  TypeScript code snippet - How to update usequery after mutation in apollo client?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.