Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRebecca Turner <me@re-becca.org>2015-05-22 11:33:46 +0300
committerRebecca Turner <me@re-becca.org>2015-06-26 03:27:03 +0300
commitd3c858ce4cfb3aee515bb299eb034fe1b5e44344 (patch)
treee7714c839934a729b68038f4c7dc5ec3ed877638 /node_modules/aproba
parent24564b9654528d23c726cf9ea82b1aef2044b692 (diff)
deps: deduplicate npm@3 style
Diffstat (limited to 'node_modules/aproba')
-rw-r--r--node_modules/aproba/package.json86
1 files changed, 62 insertions, 24 deletions
diff --git a/node_modules/aproba/package.json b/node_modules/aproba/package.json
index f0e3225ae..16f35b0a5 100644
--- a/node_modules/aproba/package.json
+++ b/node_modules/aproba/package.json
@@ -1,39 +1,77 @@
{
- "name": "aproba",
- "version": "1.0.1",
- "description": "A rediculously light-weight argument validator",
- "main": "index.js",
- "directories": {
- "test": "test"
+ "_args": [
+ [
+ "aproba@~1.0.1",
+ "/Users/rebecca/code/npm"
+ ]
+ ],
+ "_from": "aproba@>=1.0.1 <1.1.0",
+ "_id": "aproba@1.0.1",
+ "_inCache": true,
+ "_location": "/aproba",
+ "_nodeVersion": "1.6.2",
+ "_npmUser": {
+ "email": "me@re-becca.org",
+ "name": "iarna"
+ },
+ "_npmVersion": "2.7.5",
+ "_phantomChildren": {},
+ "_requested": {
+ "name": "aproba",
+ "raw": "aproba@~1.0.1",
+ "rawSpec": "~1.0.1",
+ "scope": null,
+ "spec": ">=1.0.1 <1.1.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/"
+ ],
+ "_shasum": "c4ac2cc5becfb8b099de7ef9f02790e7d32d99ef",
+ "_shrinkwrap": null,
+ "_spec": "aproba@~1.0.1",
+ "_where": "/Users/rebecca/code/npm",
+ "author": {
+ "email": "me@re-becca.org",
+ "name": "Rebecca Turner"
+ },
+ "bugs": {
+ "url": "https://github.com/iarna/aproba/issues"
},
"dependencies": {},
+ "description": "A rediculously light-weight argument validator",
"devDependencies": {
"tap": "^0.7.0"
},
- "scripts": {
- "test": "tap test/*.js"
+ "directories": {
+ "test": "test"
},
- "repository": {
- "type": "git",
- "url": "git+https://github.com/iarna/aproba.git"
+ "dist": {
+ "shasum": "c4ac2cc5becfb8b099de7ef9f02790e7d32d99ef",
+ "tarball": "http://registry.npmjs.org/aproba/-/aproba-1.0.1.tgz"
},
+ "gitHead": "a2ea029793a14cddb9457afd0a83dc421889c7ad",
+ "homepage": "https://github.com/iarna/aproba",
"keywords": [
"argument",
"validate"
],
- "author": {
- "name": "Rebecca Turner",
- "email": "me@re-becca.org"
- },
"license": "ISC",
- "bugs": {
- "url": "https://github.com/iarna/aproba/issues"
+ "main": "index.js",
+ "maintainers": [
+ {
+ "name": "iarna",
+ "email": "me@re-becca.org"
+ }
+ ],
+ "name": "aproba",
+ "optionalDependencies": {},
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/iarna/aproba"
},
- "homepage": "https://github.com/iarna/aproba",
- "readme": "aproba\n======\n\nA rediculously light-weight function argument validator\n\n```\nvar validate = require(\"aproba\")\n\nfunction myfunc(a, b, c) {\n // `a` must be a string, `b` a number, `c` a function\n validate('SNF', arguments) // [a,b,c] is also valid\n}\n\nmyfunc('test', 23, function () {}) // ok\nmyfunc(123, 23, function () {}) // type error\nmyfunc('test', 23) // missing arg error\nmyfunc('test', 23, function () {}, true) // too many args error\n\n```\n\nValid types are:\n\ntype | description\n---- | -----------\n* | matches any type\nA | instanceof Array OR an arguments object\nS | typeof == string\nN | typeof == number\nF | typeof == function\nO | typeof == object and not type A and not type E\nB | typeof == boolean\nE | instanceof Error OR null\n\nValidation failures throw one of three exception types, distinguished by a\n`code` property of `EMISSINGARG`, `EINVALIDTYPE` or `ETOOMANYARGS`.\n\nIf an error argument is found and is not null then the remaining arguments will not be validated.\n\n### Why this exists\n\nI wanted a very simple argument validator. It needed to do two things:\n\n1. Be more concise and easier to use than assertions\n\n2. Not encourage an infinite bikeshed of DSLs\n\nThis is why types are specified by a single character and there's no such\nthing as an optional argument. \n\nThis is not intended to validate user data. This is specifically about\nasserting the interface of your functions.\n\nIf you need greater validation, I encourage you to write them by hand or\nlook elsewhere.\n\n",
- "readmeFilename": "README.md",
- "gitHead": "a2ea029793a14cddb9457afd0a83dc421889c7ad",
- "_id": "aproba@1.0.1",
- "_shasum": "c4ac2cc5becfb8b099de7ef9f02790e7d32d99ef",
- "_from": "aproba@>=1.0.0 <1.1.0"
+ "scripts": {
+ "test": "tap test/*.js"
+ },
+ "version": "1.0.1"
}