132 lines
10 KiB
JSON
132 lines
10 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "normalize-package-data@^2.3.2",
|
||
|
"scope": null,
|
||
|
"escapedName": "normalize-package-data",
|
||
|
"name": "normalize-package-data",
|
||
|
"rawSpec": "^2.3.2",
|
||
|
"spec": ">=2.3.2 <3.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/read-pkg"
|
||
|
]
|
||
|
],
|
||
|
"_from": "normalize-package-data@>=2.3.2 <3.0.0",
|
||
|
"_id": "normalize-package-data@2.4.0",
|
||
|
"_inCache": true,
|
||
|
"_location": "/normalize-package-data",
|
||
|
"_nodeVersion": "8.1.0",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "s3://npm-registry-packages",
|
||
|
"tmp": "tmp/normalize-package-data-2.4.0.tgz_1498509665767_0.48049415182322264"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "iarna",
|
||
|
"email": "me@re-becca.org"
|
||
|
},
|
||
|
"_npmVersion": "5.0.4",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "normalize-package-data@^2.3.2",
|
||
|
"scope": null,
|
||
|
"escapedName": "normalize-package-data",
|
||
|
"name": "normalize-package-data",
|
||
|
"rawSpec": "^2.3.2",
|
||
|
"spec": ">=2.3.2 <3.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/read-pkg",
|
||
|
"/test-exclude/read-pkg"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz",
|
||
|
"_shasum": "12f95a307d58352075a04907b84ac8be98ac012f",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "normalize-package-data@^2.3.2",
|
||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/read-pkg",
|
||
|
"author": {
|
||
|
"name": "Meryn Stol",
|
||
|
"email": "merynstol@gmail.com"
|
||
|
},
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/npm/normalize-package-data/issues"
|
||
|
},
|
||
|
"contributors": [
|
||
|
{
|
||
|
"name": "Isaac Z. Schlueter",
|
||
|
"email": "i@izs.me"
|
||
|
},
|
||
|
{
|
||
|
"name": "Meryn Stol",
|
||
|
"email": "merynstol@gmail.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "Robert Kowalski",
|
||
|
"email": "rok@kowalski.gd"
|
||
|
}
|
||
|
],
|
||
|
"dependencies": {
|
||
|
"hosted-git-info": "^2.1.4",
|
||
|
"is-builtin-module": "^1.0.0",
|
||
|
"semver": "2 || 3 || 4 || 5",
|
||
|
"validate-npm-package-license": "^3.0.1"
|
||
|
},
|
||
|
"description": "Normalizes data that can be found in package.json files.",
|
||
|
"devDependencies": {
|
||
|
"async": "^1.5.0",
|
||
|
"tap": "^2.2.0",
|
||
|
"underscore": "^1.8.3"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==",
|
||
|
"shasum": "12f95a307d58352075a04907b84ac8be98ac012f",
|
||
|
"tarball": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz"
|
||
|
},
|
||
|
"files": [
|
||
|
"lib/*.js",
|
||
|
"lib/*.json",
|
||
|
"AUTHORS"
|
||
|
],
|
||
|
"gitHead": "9948ecf3d97cffcaab8f914522a0f3953edac6e4",
|
||
|
"homepage": "https://github.com/npm/normalize-package-data#readme",
|
||
|
"license": "BSD-2-Clause",
|
||
|
"main": "lib/normalize.js",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "iarna",
|
||
|
"email": "me@re-becca.org"
|
||
|
},
|
||
|
{
|
||
|
"name": "isaacs",
|
||
|
"email": "isaacs@npmjs.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "meryn",
|
||
|
"email": "merynstol@gmail.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "othiym23",
|
||
|
"email": "ogd@aoaioxxysz.net"
|
||
|
},
|
||
|
{
|
||
|
"name": "zkat",
|
||
|
"email": "kat@sykosomatic.org"
|
||
|
}
|
||
|
],
|
||
|
"name": "normalize-package-data",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# normalize-package-data [![Build Status](https://travis-ci.org/npm/normalize-package-data.png?branch=master)](https://travis-ci.org/npm/normalize-package-data)\n\nnormalize-package-data exports a function that normalizes package metadata. This data is typically found in a package.json file, but in principle could come from any source - for example the npm registry.\n\nnormalize-package-data is used by [read-package-json](https://npmjs.org/package/read-package-json) to normalize the data it reads from a package.json file. In turn, read-package-json is used by [npm](https://npmjs.org/package/npm) and various npm-related tools.\n\n## Installation\n\n```\nnpm install normalize-package-data\n```\n\n## Usage\n\nBasic usage is really simple. You call the function that normalize-package-data exports. Let's call it `normalizeData`.\n\n```javascript\nnormalizeData = require('normalize-package-data')\npackageData = require(\"./package.json\")\nnormalizeData(packageData)\n// packageData is now normalized\n```\n\n#### Strict mode\n\nYou may activate strict validation by passing true as the second argument.\n\n```javascript\nnormalizeData = require('normalize-package-data')\npackageData = require(\"./package.json\")\nnormalizeData(packageData, true)\n// packageData is now normalized\n```\n\nIf strict mode is activated, only Semver 2.0 version strings are accepted. Otherwise, Semver 1.0 strings are accepted as well. Packages must have a name, and the name field must not have contain leading or trailing whitespace.\n\n#### Warnings\n\nOptionally, you may pass a \"warning\" function. It gets called whenever the `normalizeData` function encounters something that doesn't look right. It indicates less than perfect input data.\n\n```javascript\nnormalizeData = require('normalize-package-data')\npackageData = require(\"./package.json\")\nwarnFn = function(msg) { console.error(msg) }\nnormalizeData(packageData, warnFn)\n// packageData is now normalized. Any number of warnings may have been logged.\n```\n\nYou may combine strict validation with warnings by passing `true` as the second argument, and `warnFn` as third.\n\nWhen `private` field is set to `true`, warnings will be suppressed.\n\n### Potential exceptions\n\nIf the supplied data has an invalid name or version vield, `normalizeData` will throw an error. Depending on where you call `normalizeData`, you may want to catch these errors so can pass them to a callback.\n\n## What normalization (currently) entails\n\n* The value of `name` field gets trimmed (unless in strict mode).\n* The value of the `version` field gets cleaned by `semver.clean`. See [documentation for the semver module](https://github.com/isaacs/node-semver).\n* If `name` and/or `version` fields are missing, they are set to empty strings.\n* If `files` field is not an array, it will be removed.\n* If `bin` field is a string, then `bin` field will become an object with `name` set to the value of the `name` field, and `bin` set to the original string value.\n* If `man` field is a string, it will become an array with the original string as its sole member.\n* If `keywords` field is string, it is considered to be a list of keywords separated by one or more white-space characters. It gets converted to an array by splitting on `\\s+`.\n* All people fields (`author`, `maintainers`, `contributors`) get converted into objects with name, email and url properties.\n* If `bundledDependencies` field (a typo) exists and `bundleDependencies` field does not, `bundledDependencies` will get renamed to `bundleDependencies`.\n* If the value of any of the dependencies fields (`dependencies`, `devDependencies`, `optionalDependencies`) is a string, it gets converted into an object with familiar `name=>value` pairs.\n* The values in `optionalDependencies` get added to `dependencies`. The `optionalDependencies` array is left untouched.\n* As of v2: Dependencies that point at known hosted git providers (currently: github, bitbucket, gitlab) will have their URLs canonicalized, but protocols will be preserved.\n* As of v2: Dependencies
|
||
|
"readmeFilename": "README.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git://github.com/npm/normalize-package-data.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"test": "tap test/*.js"
|
||
|
},
|
||
|
"version": "2.4.0"
|
||
|
}
|