skpm / fs

Drop-in replacement for the fs NodeJS package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

appendFileSync is not working

emalgholzad opened this issue · comments

commented

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)

fixed in 0.1.3