Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zkochan/npm-package-arg

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zkochan/npm-package-arg - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

npa.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc