Comparing version
"use strict"; | ||
const path = require("path") | ||
, ul = require("ul") | ||
; | ||
var path = require("path"), | ||
ul = require("ul"); | ||
@@ -18,4 +17,8 @@ /** | ||
function abs(input) { | ||
if (!input) { return process.cwd(); } | ||
if (input.charAt(0) === "/") { return input; } | ||
if (!input) { | ||
return process.cwd(); | ||
} | ||
if (input.charAt(0) === "/") { | ||
return input; | ||
} | ||
if (input.charAt(0) === "~" && input.charAt(1) === "/") { | ||
@@ -27,2 +30,2 @@ input = ul.HOME_DIR + input.substr(1); | ||
module.exports = abs; | ||
module.exports = abs; |
{ | ||
"name": "abs", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "A library to convert a path into an absolute path.", | ||
@@ -41,2 +41,3 @@ "main": "lib/index.js", | ||
"menu/", | ||
"scripts/", | ||
"cli.js", | ||
@@ -43,0 +44,0 @@ "index.js" |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
25
8.7%2609
-67.26%3
-25%1
Infinity%0
-100%