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

bare-path

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-path - npm Package Compare versions

Comparing version 1.1.2 to 2.0.0

6

index.js

@@ -0,1 +1,3 @@

const os = require('bare-os')
const posix = makePath(false)

@@ -7,3 +9,3 @@ const win32 = makePath(true)

module.exports = process.platform === 'win32' ? win32 : posix
module.exports = os.platform() === 'win32' ? win32 : posix

@@ -91,3 +93,3 @@ function makePath (windows) {

for (let i = args.length - 1; i >= -1; i--) {
const part = i === -1 ? process.cwd() : args[i]
const part = i === -1 ? os.cwd() : args[i]
if (part.length === 0) continue

@@ -94,0 +96,0 @@ resolved = path.join(part, resolved)

{
"name": "bare-path",
"version": "1.1.2",
"version": "2.0.0",
"description": "Path manipulation library for JavaScript",

@@ -22,2 +22,5 @@ "main": "index.js",

"homepage": "https://github.com/holepunchto/bare-path#readme",
"dependencies": {
"bare-os": "^2.0.0"
},
"devDependencies": {

@@ -24,0 +27,0 @@ "brittle": "^3.3.2",

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