New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

slash-path

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slash-path

This library wraps the routes library and exposes the same methods with the slash method, to use slash as the default separator.

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
7.3K
90.09%
Maintainers
1
Weekly downloads
 
Created
Source

slash-path

Motivation

It's good or bad practice, but we need to compose file paths uniformly, I need to ignore Windows backslash and adopt Linux forward slash to compose paths to system files and resources.

Description

This library wraps the routes library and exposes the same methods with the slash method, to use slash as the default separator.

Example

// import path from "path";
import path from "slash-path";

const filePath = path.resolve("./file.txt");

console.log("path: ", filePath);
// output
// path: c:/path/to/ptoject/file.txt

Keywords

path

FAQs

Package last updated on 25 Dec 2024

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