Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/patch-console.json

raw
1 {
2 "_id": "patch-console",
3 "name": "patch-console",
4 "dist-tags": {
5 "latest": "1.0.0"
6 },
7 "versions": {
8 "1.0.0": {
9 "name": "patch-console",
10 "version": "1.0.0",
11 "description": "Patch console methods to intercept output",
12 "license": "MIT",
13 "repository": {
14 "type": "git",
15 "url": "git+https://github.com/vadimdemedes/patch-console.git"
16 },
17 "author": {
18 "name": "vdemedes",
19 "email": "[email protected]",
20 "url": "https://github.com/vadimdemedes"
21 },
22 "main": "build",
23 "types": "build/index.d.ts",
24 "engines": {
25 "node": ">=10"
26 },
27 "scripts": {
28 "prepare": "tsc",
29 "test": "prettier --check src && tsc && xo && ava"
30 },
31 "keywords": [
32 "stdout",
33 "stderr",
34 "patch",
35 "console",
36 "intercept",
37 "log",
38 "logs"
39 ],
40 "devDependencies": {
41 "@sindresorhus/tsconfig": "^0.7.0",
42 "@types/node": "^14.0.13",
43 "ava": "^3.9.0",
44 "prettier": "^2.0.5",
45 "sinon": "^9.0.2",
46 "typescript": "^3.9.5",
47 "xo": "^0.32.0"
48 },
49 "prettier": {
50 "useTabs": true,
51 "singleQuote": true,
52 "quoteProps": "as-needed",
53 "trailingComma": "none",
54 "bracketSpacing": false,
55 "arrowParens": "avoid"
56 },
57 "xo": {
58 "prettier": true
59 },
60 "ava": {
61 "serial": true
62 },
63 "gitHead": "4c35d6c4d340aff921dafc8ec54bd0a5e4b7f930",
64 "bugs": {
65 "url": "https://github.com/vadimdemedes/patch-console/issues"
66 },
67 "homepage": "https://github.com/vadimdemedes/patch-console#readme",
68 "_id": "[email protected]",
69 "_nodeVersion": "12.13.1",
70 "_npmVersion": "6.12.1",
71 "dist": {
72 "integrity": "sha512-nxl9nrnLQmh64iTzMfyylSlRozL7kAXIaxw1fVcLYdyhNkJCRUzirRZTikXGJsg+hc4fqpneTK6iU2H1Q8THSA==",
73 "shasum": "19b9f028713feb8a3c023702a8cc8cb9f7466f9d",
74 "tarball": "https://registry.npmjs.org/patch-console/-/patch-console-1.0.0.tgz",
75 "fileCount": 5,
76 "unpackedSize": 4728,
77 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe56VYCRA9TVsSAnZWagAAjogQAIWGx6VkPPGNNR/FVG7I\n7x6psT4z+H89Laum9Ee5manBh0UTp5ZX8CTzpm5Gv2a+Y0Rpx8/7bbmuFUN6\n5pNCzr2OYSumQ5fhHvghsnEAV71Q7twIx+KapachC747xNoTBhfVCdFe+c4F\ngRU2InmS5p4fXoQjfdUqrz8+4k3SR/yTOtlNlCXfA1F89aDVlDiR16pASQit\njx/k6LjC2mxVqaeeS3Yb++pIX6aVDjqVes3vaMHZFSInKDtC+Opfwo31SzT/\n+O+ByPsxFjmjBgXGCN2zjArRqawk3bi5XKkZMsr1t/qhvPvrnJddaSg8h6wy\naCLmdZriHtjhkdHTDykBOHAf00F3jmZz3/1OUCkvgm4GwStk007gPaevpFjg\nBAUpazzEfS7hTOiQaFoqW2NXJfUXE2mHbcmMAevpfkn/M0vb0FqLNivHe2He\nzBxM6dzWUAdS4UlrK57o5d6+PaVBajsEwpPcnx6BaunLJS3FfY0ZWZJ2fDWF\nIyCQDdhsVxMUCyV9ywnW1ZZz/BHf/Leffp94TQ1VkmH+DGvIanfLscKuwamD\necYK4LfGPT7n8UETb8kULPXWNswsyDDoai46WqUPlrbZJ91J1swW2bDTxVq5\nPedxl3NwyVZNwliG8EjlWqNs1bCob0BKYMSH/EiiAqatNxYlZfPjKLv18CxM\n+BZt\r\n=o8Hl\r\n-----END PGP SIGNATURE-----\r\n"
78 },
79 "maintainers": [
80 {
81 "name": "vdemedes",
82 "email": "[email protected]"
83 }
84 ],
85 "_npmUser": {
86 "name": "vdemedes",
87 "email": "[email protected]"
88 },
89 "directories": {},
90 "_npmOperationalInternal": {
91 "host": "s3://npm-registry-packages",
92 "tmp": "tmp/patch-console_1.0.0_1592239447937_0.38488768892717573"
93 },
94 "_hasShrinkwrap": false
95 }
96 },
97 "time": {
98 "created": "2020-06-15T16:44:07.936Z",
99 "1.0.0": "2020-06-15T16:44:08.060Z",
100 "modified": "2020-06-15T16:44:11.825Z"
101 },
102 "maintainers": [
103 {
104 "name": "vdemedes",
105 "email": "[email protected]"
106 }
107 ],
108 "description": "Patch console methods to intercept output",
109 "homepage": "https://github.com/vadimdemedes/patch-console#readme",
110 "keywords": [
111 "stdout",
112 "stderr",
113 "patch",
114 "console",
115 "intercept",
116 "log",
117 "logs"
118 ],
119 "repository": {
120 "type": "git",
121 "url": "git+https://github.com/vadimdemedes/patch-console.git"
122 },
123 "author": {
124 "name": "vdemedes",
125 "email": "[email protected]",
126 "url": "https://github.com/vadimdemedes"
127 },
128 "bugs": {
129 "url": "https://github.com/vadimdemedes/patch-console/issues"
130 },
131 "license": "MIT",
132 "readme": "# patch-console ![test](https://github.com/vadimdemedes/patch-console/workflows/test/badge.svg)\n\n> Patch console methods to intercept output\n\n## Install\n\n```\n$ npm install patch-console\n```\n\n## Usage\n\n```js\nconst patchConsole = require('patch-console');\n\nconst restore = patchConsole((stream, data) => {\n\t// stream = 'stdout'\n\t// data = \"Hello World\"\n});\n\nconsole.log('Hello World');\n\n// Restore original methods\nrestore();\n```\n\n## API\n\n### patchConsole(callback)\n\nAfter this function is called, output from console methods will be intercepted and won't show up in the actual stdout or stderr stream.\nTo restore original console methods and stop intercepting output, call the function which `patchConsole()` returns.\n\n#### callback\n\nType: `Function`\n\nFunction that will be called when output from one of the console methods is intercepted.\nFirst argument is name of the stream (`\"stdout\"` or `\"stderr\"`), second argument is output itself.\n\n## Console methods\n\nThis module intercepts the following methods:\n\n- `console.assert()`\n- `console.count()`\n- `console.countReset()`\n- `console.debug()`\n- `console.dir()`\n- `console.dirxml()`\n- `console.error()`\n- `console.group()`\n- `console.groupCollapsed()`\n- `console.groupEnd()`\n- `console.info()`\n- `console.log()`\n- `console.table()`\n- `console.time()`\n- `console.timeEnd()`\n- `console.timeLog()`\n- `console.trace()`\n- `console.warn()`\n",
133 "readmeFilename": "readme.md"
134 }