Creates the smallest possible syntactically valid file of the specified extension at the specified location. Based on mathiasbynens/small.

await newFile(filepath)

Examples

await newFile('./src/blank.html');

Notes

If an extension is not supported, and empty file will be created instead.