superpathjoin
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

superpathjoin

path.join on steroïds.

Usage

import { superpathjoin } from 'superpathjoin';
superpathjoin('path', 'to', 'assets');

=> "path/to/assets"

Tests results

superpathjoin
  ✓ should join parts
  ✓ should cast parts to string
  ✓ should join with deduplicate slashes
  ✓ should keep the last slash
  ✓ should return an absolute path if the last arg is true
  ✓ should remove the first slash if the last arg is false
  ✓ should filter empty values
  ✓ should trim args
  ✓ should handle "../" relative parts
  ✓ should not replace "://"

Readme

Keywords

Package Sidebar

Install

npm i superpathjoin

Weekly Downloads

4

Version

2.0.1

License

MIT

Unpacked Size

6.88 kB

Total Files

14

Last publish

Collaborators

  • crock