browserify / browserify/path-browserify
Use deno_std path module?
- Dominant language
- JavaScript
- Stars
- 192
- Forks
- 54
- PR merge metrics
- No merged PRs in 30d
Description
Would you mind switch to use `deno_std`'s path module? API is compatible with Node.js, simply use `deno bundle` to output es module, make bundlers do tree shaking better
```ts
// mod.ts
import { win32, posix } from 'https://deno.land/std@0.163.0/path/mod.ts'
export { win32, posix }
export const {
basename,
delimiter,
dirname,
extname,
format,
fromFileUrl,
isAbsolute,
join,
normalize,
parse,
relative,
resolve,
sep,
toFileUrl,
toNamespacedPath
} = posix
```
```bash
deno bundle mod.ts index.js
```
```jsonc
// package.json
{
"module": "./index.js",
"main": "./index.js",
"type": "module"
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.