Socket
Socket
Sign inDemoInstall

urix

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Protect your apps from supply chain attacks

Install

urix

Makes Windows-style paths more unix and URI friendly.

    0.1.0latest
    GitHub
    npm

Version published
Maintainers
1
Weekly downloads
13,991,564
increased by2.86%

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 installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the 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