brfs icon indicating copy to clipboard operation
brfs copied to clipboard

include `fs.statSync`/`fs.stat`?

Open perguth opened this issue 8 years ago • 1 comments

It seems like this would a natural add to this library since one most probably stats a file before trying to read it.

fs.statSync would eg. enable sheetify to require any local CSS file - which would be nice.

perguth avatar Oct 11 '17 10:10 perguth

this seems fine, but I don't think it would help sheetify, as brfs can only statically evaluate calls like this:

fs.stat('./filename')
fs.stat(path.join(__dirname, 'xyz.js')

and not variable arguments (which may refer to any file on the filesystem)

goto-bus-stop avatar Feb 02 '18 12:02 goto-bus-stop