GT2/GT2-iOS/node_modules/create-error-class/package.json

97 lines
3.6 KiB
JSON

{
"_args": [
[
{
"raw": "create-error-class@^3.0.0",
"scope": null,
"escapedName": "create-error-class",
"name": "create-error-class",
"rawSpec": "^3.0.0",
"spec": ">=3.0.0 <4.0.0",
"type": "range"
},
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/got"
]
],
"_from": "create-error-class@>=3.0.0 <4.0.0",
"_id": "create-error-class@3.0.2",
"_inCache": true,
"_location": "/create-error-class",
"_nodeVersion": "4.4.1",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/create-error-class-3.0.2.tgz_1459840488945_0.7410781022626907"
},
"_npmUser": {
"name": "floatdrop",
"email": "floatdrop@gmail.com"
},
"_npmVersion": "2.14.20",
"_phantomChildren": {},
"_requested": {
"raw": "create-error-class@^3.0.0",
"scope": null,
"escapedName": "create-error-class",
"name": "create-error-class",
"rawSpec": "^3.0.0",
"spec": ">=3.0.0 <4.0.0",
"type": "range"
},
"_requiredBy": [
"/got"
],
"_resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz",
"_shasum": "06be7abef947a3f14a30fd610671d401bca8b7b6",
"_shrinkwrap": null,
"_spec": "create-error-class@^3.0.0",
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/got",
"author": {
"name": "Vsevolod Strukchinsky",
"email": "floatdrop@gmail.com",
"url": "github.com/floatdrop"
},
"bugs": {
"url": "https://github.com/floatdrop/create-error-class/issues"
},
"dependencies": {
"capture-stack-trace": "^1.0.0"
},
"description": "Create Error classes",
"devDependencies": {
"mocha": "*"
},
"directories": {},
"dist": {
"shasum": "06be7abef947a3f14a30fd610671d401bca8b7b6",
"tarball": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"gitHead": "af3f3979494c4eca0b0259d12035e7fb84fa302f",
"homepage": "https://github.com/floatdrop/create-error-class#readme",
"keywords": [],
"license": "MIT",
"maintainers": [
{
"name": "floatdrop",
"email": "floatdrop@gmail.com"
}
],
"name": "create-error-class",
"optionalDependencies": {},
"readme": "# create-error-class [![Build Status](https://travis-ci.org/floatdrop/create-error-class.svg?branch=master)](https://travis-ci.org/floatdrop/create-error-class)\n\n> Create error class\n\n\n## Install\n\n```\n$ npm install --save create-error-class\n```\n\n\n## Usage\n\n```js\nvar createErrorClass = require('create-error-class');\n\nvar HTTPError = createErrorClass('HTTPError', function (props) {\n\tthis.message = 'Status code is ' + props.statusCode;\n});\n\nthrow new HTTPError({statusCode: 404});\n```\n\n\n## API\n\n### createErrorClass(className, [setup])\n\nReturn constructor of Errors with `className`.\n\n#### className\n\n*Required* \nType: `string`\n\nClass name of Error Object. Should contain characters from `[0-9a-zA-Z_$]` range.\n\n#### setup\nType: `function`\n\nSetup function, that will be called after each Error object is created from constructor with context of Error object.\n\nBy default `setup` function sets `this.message` as first argument:\n\n```js\nvar MyError = createErrorClass('MyError');\n\nnew MyError('Something gone wrong!').message; // => 'Something gone wrong!'\n```\n\n## License\n\nMIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/floatdrop/create-error-class.git"
},
"scripts": {
"test": "mocha"
},
"version": "3.0.2"
}