0.1.0 • Published 11 years ago

urix v0.1.0

Weekly downloads
16,184,170
License
MIT
Repository
github
Last release
11 years ago

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.

archetype-librarycomponennenttvuedragdropuploadimagespopsmart-common-authreact-native-bluetooth2killi8n-react-native-fast-imagern-send-smsspecify-importsbabel-specify-imports@icanpm/api-mastergew-nodejs-api-client@arisageha/react-lazyload@arisageha/react-lazyload-fix@cashremit/cr-streamline-iconsreact-native-template-rfbasecloud-archive-s3airscanairscan-examplebb-chatreact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxf@phil8795/pecuniarius-apideneme323112@texttree/demo-bsa-reference-rcl@fundefund/funde_ck@ntt_app/react-native-custom-notificationreact-native-custom-text-hwjamesreact-native-covid-sdkgql_din_modbitgetreact-native-thanh-toast-library@thanhnguyen14797/react-native-thanh-toast-library@l1nyanm1ng/react-picture-viewercthpb-plugin-social@olivervorasai/sliderreact-native-printer-brothersrn-pdf-reader-offlinereact-native-shekhar-bridge-testasterjswilscanner@oiti/documentoscopy-react-nativejs4cytoscape@mink-opn/build-tokensquoc-testreact-native-slider-kf@infinitebrahmanuniverse/nolb-uri@saaspe/componentsplginexpand-react-bridge@everything-registry/sub-chunk-3023ondgriffin-ui-librarytailwind-vector-effectsyncbackbasestest-carosello-campustest-library-123test-haptik-libteadanteatest-npm-jjmessiwdi-cssvue-button-test1webchewoven-challenge-deployxdms3wifi_configuration_packagern-tm-notifyrn-use-modal-hookrn-counter-demorn-session-multiplier-demorn_unique_device_idrnttlocksharingcomponent2samc2samc3samc4samc5sam-carouselresolve-url-loader-fork-webpack2-fixresponsive-react-appreikamoon-string-library-aarn-adyen-dropinrn-my-libraryrn-pay-sdksuperset-plugin-chart-hello-world2supercluster-googlemaps-adapter-clonestechfox-icontechfox-react-featherspotify-ds-sesticky-scroll-catchsteal-toolsstp-cdksequelcomponentreact-native-wtfreact-native-version-appreyhan-projecttestapateste_cegidtestnpm_lmnsvelte-component-lib
0.1.0

11 years ago