1.1.2 • Published 8 years ago

safe-write-file v1.1.2

Weekly downloads
2,686
License
MIT
Repository
github
Last release
8 years ago

safe-write-file

Like fs.writeFile, but it will create the needed directories before trying to create the file.

Install

npm install safe-write-file

Usage

var safeWriteFile = require('safe-write-file')

safeWriteFile(__dirname+'/these/will/be/created/file.txt', 'Text, bro!')

Parameters

See the fs.writeFile docs.

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago