Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

superpathjoin

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superpathjoin

path.join on steroïds.

latest
Source
npmnpm
Version
2.0.1
Version published
Weekly downloads
4
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

join

FAQs

Package last updated on 17 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts