2.0.1 • Published 5 years ago

superpathjoin v2.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

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 "://"
2.0.1

5 years ago

2.0.0

5 years ago

1.3.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

7 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago