path-absolute
Advanced tools
Comparing version 1.0.0 to 1.0.1
'use strict' | ||
const osHomedir = require('os-homedir') | ||
const os = require('os') | ||
const path = require('path') | ||
@@ -21,3 +21,3 @@ | ||
function getHomedir () { | ||
const home = osHomedir() | ||
const home = os.homedir() | ||
if (!home) throw new Error('Could not find the homedir') | ||
@@ -24,0 +24,0 @@ return home |
{ | ||
"name": "path-absolute", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Resolves a path to an absolute path. Supports tilde", | ||
@@ -14,6 +14,3 @@ "main": "index.js", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/zkochan/path-absolute.git" | ||
}, | ||
"repository": "https://github.com/zkochan/packages/tree/master/path-absolute", | ||
"keywords": [ | ||
@@ -24,14 +21,15 @@ "path", | ||
], | ||
"author": "Zoltan Kochan", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/zkochan/path-absolute/issues" | ||
"author": { | ||
"name": "Zoltan Kochan", | ||
"email": "z@kochan.io", | ||
"url": "https://kochan.io/" | ||
}, | ||
"homepage": "https://github.com/zkochan/path-absolute#readme", | ||
"dependencies": { | ||
"os-homedir": "^1.0.2" | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"license": "MIT", | ||
"homepage": "https://github.com/zkochan/packages/tree/master/path-absolute#readme", | ||
"devDependencies": { | ||
"standard": "^10.0.3" | ||
"standard": "12.0.1" | ||
} | ||
} |
@@ -5,4 +5,4 @@ # path-absolute | ||
<!--@shields('npm', 'travis')--> | ||
[![npm version](https://img.shields.io/npm/v/path-absolute.svg)](https://www.npmjs.com/package/path-absolute) [![Build Status](https://img.shields.io/travis/zkochan/path-absolute/master.svg)](https://travis-ci.org/zkochan/path-absolute) | ||
<!--@shields('npm')--> | ||
[![npm version](https://img.shields.io/npm/v/path-absolute.svg)](https://www.npmjs.com/package/path-absolute) | ||
<!--/@--> | ||
@@ -9,0 +9,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
0
0
3184
2
1
- Removedos-homedir@^1.0.2
- Removedos-homedir@1.0.2(transitive)