@zkochan/npm-package-arg
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -11,3 +11,3 @@ 'use strict' | ||
let validatePackageName | ||
let osenv | ||
let os | ||
@@ -181,4 +181,4 @@ const isWindows = process.platform === 'win32' || global.FAKE_WINDOWS | ||
// this is needed for windows and for file:~/foo/bar | ||
if (!osenv) osenv = require('osenv') | ||
res.fetchSpec = resolvePath(osenv.home(), spec.slice(2)) | ||
if (!os) os = require('os') | ||
res.fetchSpec = resolvePath(os.homedir(), spec.slice(2)) | ||
res.saveSpec = 'file:' + spec | ||
@@ -185,0 +185,0 @@ } else { |
{ | ||
"name": "@zkochan/npm-package-arg", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Parse the things that can be arguments to `npm install`", | ||
@@ -14,3 +14,2 @@ "main": "npa.js", | ||
"hosted-git-info": "^2.5.0", | ||
"osenv": "^0.1.4", | ||
"semver": "^5.4.1", | ||
@@ -28,3 +27,3 @@ "validate-npm-package-name": "^3.0.0" | ||
"type": "git", | ||
"url": "https://github.com/npm/npm-package-arg" | ||
"url": "https://github.com/zkochan/npm-package-arg" | ||
}, | ||
@@ -34,5 +33,5 @@ "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)", | ||
"bugs": { | ||
"url": "https://github.com/npm/npm-package-arg/issues" | ||
"url": "https://github.com/zkochan/npm-package-arg/issues" | ||
}, | ||
"homepage": "https://github.com/npm/npm-package-arg" | ||
"homepage": "https://github.com/zkochan/npm-package-arg" | ||
} |
@@ -1,5 +0,3 @@ | ||
# npm-package-arg | ||
# @zkochan/npm-package-arg | ||
[![Build Status](https://travis-ci.org/npm/npm-package-arg.svg?branch=master)](https://travis-ci.org/npm/npm-package-arg) | ||
Parses package name and specifier passed to commands like `npm install` or | ||
@@ -12,3 +10,3 @@ `npm cache add`, or as found in `package.json` dependency sections. | ||
var assert = require("assert") | ||
var npa = require("npm-package-arg") | ||
var npa = require("@zkochan/npm-package-arg") | ||
@@ -25,3 +23,3 @@ // Pass in the descriptor, and it'll return an object | ||
`var npa = require('npm-package-arg')` | ||
`var npa = require('@zkochan/npm-package-arg')` | ||
@@ -52,3 +50,3 @@ ### var result = npa(*arg*[, *where*]) | ||
The objects that are returned by npm-package-arg contain the following | ||
The objects that are returned by @zkochan/npm-package-arg contain the following | ||
keys: | ||
@@ -55,0 +53,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
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
3
13720
82
- Removedosenv@^0.1.4
- Removedos-homedir@1.0.2(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedosenv@0.1.5(transitive)