https://github.com/fil/importz
just of test of import foo%20bar
https://github.com/fil/importz
Last synced: 2 months ago
JSON representation
just of test of import foo%20bar
- Host: GitHub
- URL: https://github.com/fil/importz
- Owner: Fil
- Created: 2024-01-29T09:56:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-02T13:18:44.000Z (over 1 year ago)
- Last Synced: 2025-01-24T10:28:39.401Z (4 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Just a test of
```js
import foobar from "./foo%20bar.js";
```See https://fil.github.io/importz/
When opening "[index.html](https://fil.github.io/importz/)", all browsers show:
```
foo bar=using foo[space]bar.js
foo%20bar=using foo[space]bar.js
foo%2520bar=using foo%20bar.js
```Similarly, node and deno show:
```
❯ node index.mjs
{
foobar0: 'using foo[space]bar.js',
foobar1: 'using foo[space]bar.js',
foobar2: 'using foo%20bar.js'
}
❯ deno run index.mjs
{
foobar0: "using foo[space]bar.js",
foobar1: "using foo[space]bar.js",
foobar2: "using foo%20bar.js"
}
```interestingly, bun is NOT following this and uses strict file names:
```
❯ bun index.mjs
{
foobar0: "using foo[space]bar.js",
foobar1: "using foo%20bar.js",
foobar2: "using foo%2520bar.js",
}
```This bun issue is tracked at https://github.com/oven-sh/bun/issues/8640