Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include fs.statSync/fs.stat? #80

Open
perguth opened this issue Oct 11, 2017 · 1 comment
Open

include fs.statSync/fs.stat? #80

perguth opened this issue Oct 11, 2017 · 1 comment

Comments

@perguth
Copy link

perguth commented Oct 11, 2017

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 perguth changed the title include fs.statSync? include fs.statSync/fs.stat? Oct 11, 2017
@goto-bus-stop
Copy link
Member

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants