René's URL Explorer Experiment


Title: more ways of getting files · Issue #49757 · nodejs/node · GitHub

Open Graph Title: more ways of getting files · Issue #49757 · nodejs/node

X Title: more ways of getting files · Issue #49757 · nodejs/node

Description: What is the problem this feature will solve? it's kind of a #developer-pain that there are no sync version of fs.openAsBlob (aka: fs.openAsBlobSync) they are a Blob instead of Files and therefore lacks a file name and lastModified. So up...

Open Graph Description: What is the problem this feature will solve? it's kind of a #developer-pain that there are no sync version of fs.openAsBlob (aka: fs.openAsBlobSync) they are a Blob instead of Files and therefore l...

X Description: What is the problem this feature will solve? it's kind of a #developer-pain that there are no sync version of fs.openAsBlob (aka: fs.openAsBlobSync) they are a Blob instead of Files and therefo...

Opengraph URL: https://github.com/nodejs/node/issues/49757

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"more ways of getting files","articleBody":"### What is the problem this feature will solve?\r\n\r\nit's kind of a #developer-pain that \r\n1) there are no sync version of `fs.openAsBlob` (aka: fs.openAsBlobSync)\r\n2) they are a `Blob` instead of `File`s and therefore lacks a file name and lastModified. So upgrading them to a File requires figuring out more stuff yourself.\r\n\r\n### What is the feature you are proposing to solve the problem?\r\n\r\nThat we add:\r\n\r\n- [ ] `fs.openAsFile`\r\n- [ ] `fs.openAsFileSync`\r\n- [ ] `fs.openAsBlobSync` (#49759)\r\n\r\n### What alternatives have you considered?\r\n\r\nOnly workaround today is to do:\r\n\r\n```js\r\nconst name = path.basename(filePath)\r\nconst stat = fs.statSync(filePath)\r\nconst blob = await fs.openAsBlob(filePath)\r\nconst file = new File([blob], name, { \r\n  type: blob.type,\r\n  lastModified: Number(stat.mtime)\r\n })\r\n```\r\nwould be a heck a lot easier if i could just do:\r\n```js\r\nconst file = fs.openAsFileSync(filePath)\r\n```\r\nand there is no way of getting around it cuz the async openAsBlob is the only thing you can work with. which makes your own code having to be async as well.","author":{"url":"https://github.com/jimmywarting","@type":"Person","name":"jimmywarting"},"datePublished":"2023-09-21T23:59:52Z","url":"https://github.com/nodejs/node/issues/49757"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b98f19d9-b83c-6bab-badd-b2749e868569
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id81B2:10572B:EFE525:13A2569:6AED5B34
html-safe-nonce36bad7a609093cbe28172094be1d96e988caa9c1441838b4e6cea9df1612b458
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUIyOjEwNTcyQjpFRkU1MjU6MTNBMjU2OTo2QUVENUIzNCIsInZpc2l0b3JfaWQiOiIxOTgwNjMzNDU2MDYzNjM0MjI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac82d811ced904dfad3061172b713f85fff01ffed9c89d00dee4f8cb1ccb83ae5d
hovercard-subject-tagissue:1907938663
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/49757/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b94b2f2222e8ec4e747880d81b87c7e5c73cd4597a32dcc9ddd3503a56edb088/nodejs/node/issues/49757
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b94b2f2222e8ec4e747880d81b87c7e5c73cd4597a32dcc9ddd3503a56edb088/nodejs/node/issues/49757
og:image:altWhat is the problem this feature will solve? it's kind of a #developer-pain that there are no sync version of fs.openAsBlob (aka: fs.openAsBlobSync) they are a Blob instead of Files and therefore l...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejimmywarting
hostnamegithub.com
expected-hostnamegithub.com
None56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/49757#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F49757
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F49757
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/49757
Reloadhttps://github.com/nodejs/node/issues/49757
Reloadhttps://github.com/nodejs/node/issues/49757
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues654 (654)https://github.com/nodejs/node/issues
Pull requests662 (662)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/49757
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/49757
more ways of getting fileshttps://github.com/nodejs/node/issues/49757#top
feature requestIssues requesting new Node.js features.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22feature%20request%22
fsIssues and PRs related to file-system APIs and the fs module.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22fs%22
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
https://github.com/jimmywarting
jimmywartinghttps://github.com/jimmywarting
on Sep 21, 2023https://github.com/nodejs/node/issues/49757#issue-1907938663
fs: fix fs.openAsBlob, add fs.openAsBlobSync and fsPromises.openAsBlob #49759https://github.com/nodejs/node/pull/49759
jimmywartinghttps://github.com/jimmywarting
feature requestIssues requesting new Node.js features.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22feature%20request%22
on Sep 21, 2023https://github.com/nodejs/node/issues/49757#event-10441486335
github-project-automationhttps://github.com/apps/github-project-automation
Node.js feature requestshttps://github.com/orgs/nodejs/projects/4
on Sep 21, 2023https://github.com/nodejs/node/issues/49757#event-14882149908
github-project-automationhttps://github.com/apps/github-project-automation
Node.js feature requestshttps://github.com/orgs/nodejs/projects/4
on Sep 21, 2023https://github.com/nodejs/node/issues/49757
LiviaMedeiroshttps://github.com/LiviaMedeiros
fsIssues and PRs related to file-system APIs and the fs module.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22fs%22
on Sep 22, 2023https://github.com/nodejs/node/issues/49757#event-10443368214
https://github.com/LiviaMedeiros
LiviaMedeiroshttps://github.com/LiviaMedeiros
on Sep 22, 2023https://github.com/nodejs/node/issues/49757#issuecomment-1730903645
#49759https://github.com/nodejs/node/pull/49759
https://github.com/jimmywarting
jimmywartinghttps://github.com/jimmywarting
on Sep 23, 2023https://github.com/nodejs/node/issues/49757#issuecomment-1732246365
#49759https://github.com/nodejs/node/pull/49759
mimesniff spechttps://mimesniff.spec.whatwg.org/
#49843https://github.com/nodejs/node/issues/49843
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Mar 23, 2024https://github.com/nodejs/node/issues/49757#issuecomment-2016263687
GitHub Actionshttps://help.github.com/en/actions
feature request management documenthttps://github.com/nodejs/node/blob/HEAD/doc/contributing/feature-request-management.md
github-actionshttps://github.com/apps/github-actions
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Mar 23, 2024https://github.com/nodejs/node/issues/49757#event-12222947264
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Apr 22, 2024https://github.com/nodejs/node/issues/49757#issuecomment-2068320389
GitHub Actionshttps://help.github.com/en/actions
feature request management documenthttps://github.com/nodejs/node/blob/HEAD/doc/contributing/feature-request-management.md
github-actionshttps://github.com/apps/github-actions
not plannedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Apr 22, 2024https://github.com/nodejs/node/issues/49757#event-12552716636
avivkellerhttps://github.com/avivkeller
Node.js feature requestshttps://github.com/orgs/nodejs/projects/4
on Jun 26, 2024https://github.com/nodejs/node/issues/49757
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/49757
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/49757
feature requestIssues requesting new Node.js features.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22feature%20request%22
fsIssues and PRs related to file-system APIs and the fs module.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22fs%22
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.