🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

abs

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abs - npm Package Compare versions

Comparing version

to
1.3.2

15

lib/index.js
"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;

3

package.json
{
"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"