Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clean-up-path

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean-up-path

Make paths absolute and normalize them.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
103K
decreased by-11.69%
Maintainers
1
Weekly downloads
 
Created
Source

node-clean-up-path

Build Status

Installation

npm install --save clean-up-path

Usage

let cleanUpPath = require("clean-up-path");

let absolutePath = cleanUpPath(somePath);

// Now safely use p as a symlink target, etc.

cleanUpPath(p) is similar to path.resolve(p), but it is faster for paths that are already resolved, and on Windows it turns LFS paths (c:\foo) into long UNC paths (\\?\c:\foo) to deal with path length limitations.

Unlike path.resolve, it does not guarantee that the returned path contains no .. or . segments.

Contributing

Clone this repo and run the tests like so:

npm install
npm test

Issues and pull requests are welcome. If you change code, be sure to re-run npm test. Oftentimes it's useful to add or update tests as well.

Keywords

FAQs

Package last updated on 15 Feb 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc