Skip to content

piuccio/write-file-promise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

write-file-promise

Write a file creating intermediate directories

Installation

npm install --save write-file-promise

Usage

const write = require('write-file-promise');

write('/tmp/create/file.log', data)
.then(() => {})
.catch(() => {})

The module creates intermediate directories tmp and create if they don't exist already.

write has the same signature of fs.writeFile except the last parameter callback.

About

Write a file creating intermediate directories

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published