GT2/GT2-Android/node_modules/pretty-format/package.json

103 lines
15 KiB
JSON
Raw Normal View History

{
"_args": [
[
{
"raw": "pretty-format@^21.2.1",
"scope": null,
"escapedName": "pretty-format",
"name": "pretty-format",
"rawSpec": "^21.2.1",
"spec": ">=21.2.1 <22.0.0",
"type": "range"
},
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/expo"
]
],
"_from": "pretty-format@>=21.2.1 <22.0.0",
"_id": "pretty-format@21.2.1",
"_inCache": true,
"_location": "/pretty-format",
"_nodeVersion": "8.4.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/pretty-format-21.2.1.tgz_1506550502084_0.2247674383688718"
},
"_npmUser": {
"name": "cpojer",
"email": "christoph.pojer@gmail.com"
},
"_npmVersion": "5.3.0",
"_phantomChildren": {},
"_requested": {
"raw": "pretty-format@^21.2.1",
"scope": null,
"escapedName": "pretty-format",
"name": "pretty-format",
"rawSpec": "^21.2.1",
"spec": ">=21.2.1 <22.0.0",
"type": "range"
},
"_requiredBy": [
"/expo"
],
"_resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-21.2.1.tgz",
"_shasum": "ae5407f3cf21066cd011aa1ba5fce7b6a2eddb36",
"_shrinkwrap": null,
"_spec": "pretty-format@^21.2.1",
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/expo",
"author": {
"name": "James Kyle",
"email": "me@thejameskyle.com"
},
"browser": "build-es5/index.js",
"bugs": {
"url": "https://github.com/facebook/jest/issues"
},
"dependencies": {
"ansi-regex": "^3.0.0",
"ansi-styles": "^3.2.0"
},
"description": "Stringify any JavaScript value.",
"devDependencies": {},
"directories": {},
"dist": {
"integrity": "sha512-ZdWPGYAnYfcVP8yKA3zFjCn8s4/17TeYH28MXuC8vTp0o21eXjbFGcOAXZEaDaOFJjc3h2qa7HQNHNshhvoh2A==",
"shasum": "ae5407f3cf21066cd011aa1ba5fce7b6a2eddb36",
"tarball": "https://registry.npmjs.org/pretty-format/-/pretty-format-21.2.1.tgz"
},
"homepage": "https://github.com/facebook/jest#readme",
"license": "MIT",
"main": "build/index.js",
"maintainers": [
{
"name": "mjesun",
"email": "mjesun@hotmail.com"
},
{
"name": "aaronabramov",
"email": "aaron@abramov.io"
},
{
"name": "jeanlauliac",
"email": "jean@lauliac.com"
},
{
"name": "cpojer",
"email": "christoph.pojer@gmail.com"
},
{
"name": "fb",
"email": "opensource+npm@fb.com"
}
],
"name": "pretty-format",
"optionalDependencies": {},
"readme": "# pretty-format\n\n> Stringify any JavaScript value.\n\n- Supports all built-in JavaScript types\n * primitive types: `Boolean`, `null`, `Number`, `String`, `Symbol`, `undefined`\n * other non-collection types: `Date`, `Error`, `Function`, `RegExp`\n * collection types:\n * `arguments`, `Array`, `ArrayBuffer`, `DataView`, `Float32Array`, `Float64Array`, `Int8Array`, `Int16Array`, `Int32Array`, `Uint8Array`, `Uint8ClampedArray`, `Uint16Array`, `Uint32Array`,\n * `Map`, `Set`, `WeakMap`, `WeakSet`\n * `Object`\n- [Blazingly fast](https://gist.github.com/thejameskyle/2b04ffe4941aafa8f970de077843a8fd)\n * similar performance to `JSON.stringify` in v8\n * significantly faster than `util.format` in Node.js\n- Serialize application-specific data types with built-in or user-defined plugins\n\n## Installation\n\n```sh\n$ yarn add pretty-format\n```\n\n## Usage\n\n```js\nconst prettyFormat = require('pretty-format'); // CommonJS\n```\n\n```js\nimport prettyFormat from 'pretty-format'; // ES2015 modules\n```\n\n```js\nconst val = {object: {}};\nval.circularReference = val;\nval[Symbol('foo')] = 'foo';\nval.map = new Map([['prop', 'value']]);\nval.array = [-0, Infinity, NaN];\n\nconsole.log(prettyFormat(val));\n/*\nObject {\n \"array\": Array [\n -0,\n Infinity,\n NaN,\n ],\n \"circularReference\": [Circular],\n \"map\": Map {\n \"prop\" => \"value\",\n },\n \"object\": Object {},\n Symbol(foo): \"foo\",\n}\n*/\n```\n\n## Usage with options\n\n```js\nfunction onClick() {}\n\nconsole.log(prettyFormat(onClick));\n/*\n[Function onClick]\n*/\n\nconst options = {\n printFunctionName: false,\n};\nconsole.log(prettyFormat(onClick, options));\n/*\n[Function]\n*/\n```\n\n| key | type | default | description |\n| :--- | :--- | :--- | :--- |\n| `callToJSON` | `boolean` | `true` | call `toJSON` method (if it exists) on objects |\n| `escapeRegex` | `boolean` | `false` | escape special characters in regular expressions |\n| `highlight` | `boolean` | `false` | highlight syntax with colors in terminal (some plugins) |\n| `indent` | `number` | `2` | spaces in each level of indentation |\n| `maxDepth` | `number` | `Infinity` | levels to print in arrays, objects, elements, and so on |\n| `min` | `boolean` | `false` | minimize added space: no indentation nor line breaks |\n| `plugins` | `array` | `[]` | plugins to serialize application-specific data types |\n| `printFunctionName` | `boolean` | `true` | include or omit the name of a function |\n| `theme` | `object` | | colors to highlight syntax in terminal |\n\nProperty values of `theme` are from [ansi-styles colors](https://github.com/chalk/ansi-styles#colors)\n\n```js\nconst DEFAULT_THEME = {\n comment: 'gray',\n content: 'reset',\n prop: 'yellow',\n tag: 'cyan',\n value: 'green',\n};\n```\n\n## Usage with plugins\n\nThe `pretty-format` package provides some built-in plugins, including:\n\n* `ReactElement` for elements from `react`\n* `ReactTestComponent` for test objects from `react-test-renderer`\n\n```js\n// CommonJS\nconst prettyFormat = require('pretty-format');\nconst ReactElement = prettyFormat.plugins.ReactElement;\nconst ReactTestComponent = prettyFormat.plugins.ReactTestComponent;\n\nconst React = require('react');\nconst renderer = require('react-test-renderer');\n```\n\n```js\n// ES2015 modules and destructuring assignment\nimport prettyFormat from 'pretty-format';\nconst {ReactElement, ReactTestComponent} = prettyFormat.plugins;\n\nimport React from 'react';\nimport renderer from 'react-test-renderer';\n```\n\n```js\nconst onClick = () => {};\nconst element = React.createElement('button', {onClick}, 'Hello World');\n\nconst formatted1 = prettyFormat(element, {\n plugins: [ReactElement],\n printFunctionName: false,\n});\nconst formatted2 = prettyFormat(renderer.create(element).toJSON(), {\n plugins: [ReactTestComponent],\n printFunctionName: false,\n});\n/*\n<button\n onClick=[Function]\n>\n Hello World\n</button>\n*/\n```\n\n## Usage in Jest\n\nFor snapshot tests, Jest uses `pretty-format` with options that
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/facebook/jest.git"
},
"version": "21.2.1"
}