node-fs-synchronize

0.0.4 • Public • Published

Node-fs-synchronize

Peace of code, allow you to wait for a long process such as image file resizing

 var waitforfile = require('node-fs-synchronise').waitforfile;
 
 waitforfile('./static/cache/file.jpg', 200, function(stat){
 			
    // doing your job
 });

Why use it ?

  • If you can REALLY not synchronize file process creation, you can use it ?

How does it work ?

Node-fs-synchronize look if file exist and if file is not growing for a while

Todo

  • add timeout stuff
  • add time function

Readme

Keywords

none

Package Sidebar

Install

npm i node-fs-synchronize

Weekly Downloads

0

Version

0.0.4

License

none

Last publish

Collaborators

  • johnfischer