Closed fskreuz closed 8 years ago
hey dude, this is a one-liner so I did it just now
I thought I'd leave it out here for a bit while longer. Was thinking
null
might actually be a valid return value.null is not a valid return value. inside of a file, you could have the string "null" and you would see those letters inside. but, like node dictates, a file can either be a utf-8 encoded string or a buffer. right now gobble only checks to see if it's a string, but it should also check to see if a buffer is returned. (I'll add that to the PR shortly) if you wanted a null value in your file, you would pass it a zero-filled buffer.
anyway, I thought null was a good idea to skip the file. it is useful.
In 0.11.0 :+1:
Was thinking of something like
Where
null
would tell gobble to not create the resulting file. It's possible with directory transformers but it's a ton of code to write at times, especially when the files are just1:1
.