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

pretty produces meaningless URLs #34

Open
fregante opened this issue Jul 27, 2024 · 2 comments
Open

pretty produces meaningless URLs #34

fregante opened this issue Jul 27, 2024 · 2 comments

Comments

@fregante
Copy link

- file:///Users/user/file.js
+ file://~/file.js

The first one is clickable in my IDE, the second one isn't.

I think pretty should also drop file:// to be useful and not counter-productive.

Related:

@sindresorhus
Copy link
Owner

It made more sense before when it used normal paths. Maybe it could convert the file URL to a path and then prettify it when {pretty: true}?

@fregante
Copy link
Author

I think so. file:// doesn't really add anything here, so without it it would be prettier

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

No branches or pull requests

2 participants