Skip to content

Expose stat as w3 fileapi-like object#80

Open
coolaj86 wants to merge 2 commits into
expressjs:masterfrom
coolaj86:stat-to-w3-file-api
Open

Expose stat as w3 fileapi-like object#80
coolaj86 wants to merge 2 commits into
expressjs:masterfrom
coolaj86:stat-to-w3-file-api

Conversation

@coolaj86

@coolaj86 coolaj86 commented Aug 13, 2018

Copy link
Copy Markdown

PR Dependencies:

Description

stat has a lot of properties and methods.

Since there are some cases where we may need to "fake" the stat object, it is best to limit its exposure to the 3 template functions.

Also, since W3 already specifies FileApi, File, and Blob which represent the most interesting data that is used throughout the templates - lastModified, size, name, and type - it would seem to make sense to use that as the object to pass around between template functions rather than the full stat object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants