10 May 2014

Filendir is a node module that lets you write a file given a full path, creating the directories if necessary.

I needed a simple way to write a file in a nested directory.

Usually, you will have to create the intermediary directories, then you would be able to write the file.

Filendir let's you do that without all the hassle.

It is available on npm and github.