René's URL Explorer Experiment


Title: Fails to run when .js file assoc is not node · Issue #1 · tinyhttp/cli · GitHub

Open Graph Title: Fails to run when .js file assoc is not node · Issue #1 · tinyhttp/cli

X Title: Fails to run when .js file assoc is not node · Issue #1 · tinyhttp/cli

Description: I just tried on a online Linux VSCode environment. It has the same issue. the tinyhttp.ps1 tries to execute .js directly. When the file assoc is not node.exe, it fails to execute. For example on my PC, double click .js will open VSCode, ...

Open Graph Description: I just tried on a online Linux VSCode environment. It has the same issue. the tinyhttp.ps1 tries to execute .js directly. When the file assoc is not node.exe, it fails to execute. For example on my...

X Description: I just tried on a online Linux VSCode environment. It has the same issue. the tinyhttp.ps1 tries to execute .js directly. When the file assoc is not node.exe, it fails to execute. For example on my...

Opengraph URL: https://github.com/tinyhttp/cli/issues/1

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fails to run when .js file assoc is not node","articleBody":"I just tried on a online Linux VSCode environment. It has the same issue.\r\n\r\n---\r\n\r\nthe tinyhttp.ps1 tries to execute .js directly. When the file assoc is not node.exe, it fails to execute. For example on my PC, double click .js will open VSCode, so does execute .js in shell.\r\n\r\nI have no clue why this happens. Theoretically it's auto generated? BTW I'm using npm, not pnpm\r\n\r\n```pwsh\r\n#!/usr/bin/env pwsh\r\n$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent\r\n\r\n$exe=\"\"\r\nif ($PSVersionTable.PSVersion -lt \"6.0\" -or $IsWindows) {\r\n  # Fix case when both the Windows and Linux builds of Node\r\n  # are installed in the same directory\r\n  $exe=\".exe\"\r\n}\r\n# Support pipeline input\r\nif ($MyInvocation.ExpectingInput) {\r\n  $input | \u0026 \"$basedir/../@tinyhttp/cli/dist/index.js\"   $args\r\n} else {\r\n  \u0026 \"$basedir/../@tinyhttp/cli/dist/index.js\"   $args\r\n}\r\nexit $LASTEXITCODE\r\n```\r\n\r\nthis is another cli tool\r\n\r\n```pwsh\r\n#!/usr/bin/env pwsh\r\n$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent\r\n\r\n$exe=\"\"\r\nif ($PSVersionTable.PSVersion -lt \"6.0\" -or $IsWindows) {\r\n  # Fix case when both the Windows and Linux builds of Node\r\n  # are installed in the same directory\r\n  $exe=\".exe\"\r\n}\r\n$ret=0\r\nif (Test-Path \"$basedir/node$exe\") {\r\n  # Support pipeline input\r\n  if ($MyInvocation.ExpectingInput) {\r\n    $input | \u0026 \"$basedir/node$exe\"  \"$basedir/node_modules/jiti/bin/jiti.js\" $args\r\n  } else {\r\n    \u0026 \"$basedir/node$exe\"  \"$basedir/node_modules/jiti/bin/jiti.js\" $args\r\n  }\r\n  $ret=$LASTEXITCODE\r\n} else {\r\n  # Support pipeline input\r\n  if ($MyInvocation.ExpectingInput) {\r\n    $input | \u0026 \"node$exe\"  \"$basedir/node_modules/jiti/bin/jiti.js\" $args\r\n  } else {\r\n    \u0026 \"node$exe\"  \"$basedir/node_modules/jiti/bin/jiti.js\" $args\r\n  }\r\n  $ret=$LASTEXITCODE\r\n}\r\nexit $ret\r\n```\r\n\r\n**Versions**\r\n\r\n- `node`: v19.8.1\r\n- `@tinyhttp/cli`: 1.3.4\r\n","author":{"url":"https://github.com/imba-tjd","@type":"Person","name":"imba-tjd"},"datePublished":"2023-03-30T12:32:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1/cli/issues/1"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a1c9427b-a748-4f90-fc62-0b96e7f5a550
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA7B0:336FB:A98A79:E54860:698E402A
html-safe-nonce714856bf95c53644a476112f1964a2269c253c7014ef2967169e2d7a4ecbc126
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0IwOjMzNkZCOkE5OEE3OTpFNTQ4NjA6Njk4RTQwMkEiLCJ2aXNpdG9yX2lkIjoiODgyNzE5ODI5MzgyODA1OTE3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac208e7e066c6d85009435c4ff86caf0ed24c1e757cc13d5d63b0ad1cfffa847d7
hovercard-subject-tagissue:1647528970
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/tinyhttp/cli/1/issue_layout
twitter:imagehttps://opengraph.githubassets.com/dd59608cd74467083e535ad0f6d246861ad3d4e400df8761b28f81752cd7bbca/tinyhttp/cli/issues/1
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dd59608cd74467083e535ad0f6d246861ad3d4e400df8761b28f81752cd7bbca/tinyhttp/cli/issues/1
og:image:altI just tried on a online Linux VSCode environment. It has the same issue. the tinyhttp.ps1 tries to execute .js directly. When the file assoc is not node.exe, it fails to execute. For example on my...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameimba-tjd
hostnamegithub.com
expected-hostnamegithub.com
Nonea5632af64f7fed7bff1d6a428d1aca1b94fa7a48f760de2d39d9b1effdbf0082
turbo-cache-controlno-preview
go-importgithub.com/tinyhttp/cli git https://github.com/tinyhttp/cli.git
octolytics-dimension-user_id85759314
octolytics-dimension-user_logintinyhttp
octolytics-dimension-repository_id378450504
octolytics-dimension-repository_nwotinyhttp/cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id378450504
octolytics-dimension-repository_network_root_nwotinyhttp/cli
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
releaseaa1fa9100f85cd8b602c63c7e337f9151e70024f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/tinyhttp/cli/issues/1#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftinyhttp%2Fcli%2Fissues%2F1
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftinyhttp%2Fcli%2Fissues%2F1
Sign up https://patch-diff.githubusercontent.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=tinyhttp%2Fcli
Reloadhttps://patch-diff.githubusercontent.com/tinyhttp/cli/issues/1
Reloadhttps://patch-diff.githubusercontent.com/tinyhttp/cli/issues/1
Reloadhttps://patch-diff.githubusercontent.com/tinyhttp/cli/issues/1
tinyhttp https://patch-diff.githubusercontent.com/tinyhttp
clihttps://patch-diff.githubusercontent.com/tinyhttp/cli
Please reload this pagehttps://patch-diff.githubusercontent.com/tinyhttp/cli/issues/1
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Ftinyhttp%2Fcli
Fork 1 https://patch-diff.githubusercontent.com/login?return_to=%2Ftinyhttp%2Fcli
Star 4 https://patch-diff.githubusercontent.com/login?return_to=%2Ftinyhttp%2Fcli
Code https://patch-diff.githubusercontent.com/tinyhttp/cli
Issues 1 https://patch-diff.githubusercontent.com/tinyhttp/cli/issues
Pull requests 0 https://patch-diff.githubusercontent.com/tinyhttp/cli/pulls
Actions https://patch-diff.githubusercontent.com/tinyhttp/cli/actions
Projects 0 https://patch-diff.githubusercontent.com/tinyhttp/cli/projects
Security 0 https://patch-diff.githubusercontent.com/tinyhttp/cli/security
Insights https://patch-diff.githubusercontent.com/tinyhttp/cli/pulse
Code https://patch-diff.githubusercontent.com/tinyhttp/cli
Issues https://patch-diff.githubusercontent.com/tinyhttp/cli/issues
Pull requests https://patch-diff.githubusercontent.com/tinyhttp/cli/pulls
Actions https://patch-diff.githubusercontent.com/tinyhttp/cli/actions
Projects https://patch-diff.githubusercontent.com/tinyhttp/cli/projects
Security https://patch-diff.githubusercontent.com/tinyhttp/cli/security
Insights https://patch-diff.githubusercontent.com/tinyhttp/cli/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/tinyhttp/cli/issues/1
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/tinyhttp/cli/issues/1
Fails to run when .js file assoc is not nodehttps://patch-diff.githubusercontent.com/tinyhttp/cli/issues/1#top
bugSomething isn't workinghttps://github.com/tinyhttp/cli/issues?q=state%3Aopen%20label%3A%22bug%22
help wantedExtra attention is neededhttps://github.com/tinyhttp/cli/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
https://github.com/imba-tjd
https://github.com/imba-tjd
imba-tjdhttps://github.com/imba-tjd
on Mar 30, 2023https://github.com/tinyhttp/cli/issues/1#issue-1647528970
bugSomething isn't workinghttps://github.com/tinyhttp/cli/issues?q=state%3Aopen%20label%3A%22bug%22
help wantedExtra attention is neededhttps://github.com/tinyhttp/cli/issues?q=state%3Aopen%20label%3A%22help%20wanted%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.