unijoin

1.0.0 • Public • Published

Unijoin

ESM and CJS support for path.join of both file paths and file URLs

Usage

import join from 'unijoin'
const foo = join(import.meta.url, 'lib', 'foo.js')
const relativeFileUrl = join('./folder', 'file:///a.c')

Also works fine in CJS:

const join = require('unijoin')
const relativeFileUrl = join('./folder', 'file:///a.c')

License

MIT

Package Sidebar

Install

npm i unijoin

Weekly Downloads

5

Version

1.0.0

License

MIT

Unpacked Size

2.38 kB

Total Files

5

Last publish

Collaborators

  • davidmarkclements