skpm / fs

Drop-in replacement for the fs NodeJS package
MIT License
27 stars 11 forks source link

appendFileSync is not working #10

Closed emalgholzad closed 6 years ago

emalgholzad commented 6 years ago

Hi,

I am trying to write and append a string to a file: fs.appendFileSync('logs.txt', 'Write this');

But I get the following error in Sketch DevTools:

TypeError: data.dataUsingEncoding is not a function. (In 'data.dataUsingEncoding(NSUTF8StringEncoding)', 'data.dataUsingEncoding' is undefined)
mathieudutour commented 6 years ago

fixed in 0.1.3