Socket
Socket
Sign inDemoInstall

urix

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

urix

Makes Windows-style paths more unix and URI friendly.


Version published
Maintainers
1
Weekly downloads
12,060,085
decreased by-13.02%

Weekly downloads

Readme

Source

Build Status

Overview

Makes Windows-style paths more unix and URI friendly. Useful if you work with paths that eventually will be used in URLs.

var urix = require("urix")

// On Windows:
urix("c:\\users\\you\\foo")
// /users/you/foo

// On unix-like systems:
urix("c:\\users\\you\\foo")
// c:\users\you\foo

Installation

npm install urix

var urix = require("urix")

Usage

urix(path)

On Windows, replaces all backslashes with slashes and uses a slash instead of a drive letter and a colon for absolute paths.

On unix-like systems it is a no-op.

License

The X11 (“MIT”) License.

Keywords

FAQs

Last updated on 01 Mar 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc