StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
5 years ago | |
|---|---|---|
| .. | ||
| node_modules | 5 years ago | |
| CHANGELOG.md | 5 years ago | |
| LICENSE | 5 years ago | |
| README.md | 5 years ago | |
| npa.js | 5 years ago | |
| package.json | 5 years ago | |
README.md
npm-package-arg
Parses package name and specifier passed to commands like npm install or
npm cache add, or as found in package.json dependency sections.
EXAMPLES
var assert = require("assert")
var npa = require("npm-package-arg")
// Pass in the descriptor, and it'll return an object
try {
var parsed = npa("@bar/foo@1.2")
} catch (ex) {
…
}
USING
var npa = require('npm-package-arg')
var result = npa(arg[, where])
- arg - a string that you might pass to
npm install, like:foo@1.2,@bar/foo@1.2,foo@user/foo,http://x.com/foo.tgz,git+https://github.com/user/foo,bitbucket:user/foo,foo.tar.gz,../foo/bar/orbar. If the arg you provide doesn't have a specifier part, egfoothen the specifier will default tolatest. - where - Optionally the path to resolve file paths relative to. Defaults to
process.cwd()
Throws if the package name is invalid, a dist-tag is invalid or a URL's protocol is not supported.
var result = npa.resolve(name, spec[, where])
- name - The name of the module you want to install. For example:
fooor@bar/foo. - spec - The specifier indicating where and how you can get this module. Something like:
1.2,^1.7.17,http://x.com/foo.tgz,git+https://github.com/user/foo,bitbucket:user/foo,file:foo.tar.gzorfile:../foo/bar/. If not included then the default islatest. - where - Optionally the path to resolve file paths relative to. Defaults to
process.cwd()
Throws if the package name is invalid, a dist-tag is invalid or a URL's protocol is not supported.
RESULT OBJECT
The objects that are returned by npm-package-arg contain the following keys:
type- One of the following strings:git- A git repotag- A tagged version, like"foo@latest"version- A specific version number, like"foo@1.2.3"range- A version range, like"foo@2.x"file- A local.tar.gz,.taror.tgzfile.directory- A local directory.remote- An http url (presumably to a tgz)
registry- If true this specifier refers to a resource hosted on a registry. This is true fortag,versionandrangetypes.name- If known, thenamefield expected in the resulting pkg.scope- If a name is something like@org/modulethen thescopefield will be set to@org. If it doesn't have a scoped name, then scope isnull.escapedName- A version ofnameescaped to match the npm scoped packages specification. Mostly used when making requests against a registry. Whennameisnull,escapedNamewill also benull.rawSpec- The specifier part that was parsed out in calls tonpa(arg), or the value ofspecin calls to `npa.resolve(name, spec).saveSpec- The normalized specifier, for saving to package.json files.nullfor registry dependencies.fetchSpec- The version of the specifier to be used to fetch this resource.nullfor shortcuts to hosted git dependencies as there isn't just one URL to try with them.gitRange- If set, this is a semver specifier to match against git tags withgitCommittish- If set, this is the specific committish to use with a git dependency.hosted- Iffrom === 'hosted'then this will be ahosted-git-infoobject. This property is not included when serializing the object as JSON.raw- The original un-modified string that was provided. If called asnpa.resolve(name, spec)then this will bename + '@' + spec.