Initial commit
This commit is contained in:
21
node_modules/urix/LICENSE
generated
vendored
Normal file
21
node_modules/urix/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2013 Simon Lydell
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
17
node_modules/urix/index.js
generated
vendored
Normal file
17
node_modules/urix/index.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2014 Simon Lydell
|
||||
// X11 (“MIT”) Licensed. (See LICENSE.)
|
||||
|
||||
var path = require("path")
|
||||
|
||||
"use strict"
|
||||
|
||||
function urix(aPath) {
|
||||
if (path.sep === "\\") {
|
||||
return aPath
|
||||
.replace(/\\/g, "/")
|
||||
.replace(/^[a-z]:\/?/i, "/")
|
||||
}
|
||||
return aPath
|
||||
}
|
||||
|
||||
module.exports = urix
|
||||
13
node_modules/urix/package.json
generated
vendored
Normal file
13
node_modules/urix/package.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "urix",
|
||||
"version": "0.1.0",
|
||||
"author": "Simon Lydell",
|
||||
"license": "MIT",
|
||||
"description": "Makes Windows-style paths more unix and URI friendly.",
|
||||
"main": "index.js",
|
||||
"repository": "lydell/urix",
|
||||
"devDependencies": {
|
||||
"mocha": "^1.17.1",
|
||||
"jshint": "^2.4.4"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user