@zkochan/pnpm
Version:
Fast, disk space efficient package manager
94 lines (93 loc) • 5.57 kB
JSON
{
"_args": [
[
{
"raw": "ansi-diff@1.1.1",
"scope": null,
"escapedName": "ansi-diff",
"name": "ansi-diff",
"rawSpec": "1.1.1",
"spec": "1.1.1",
"type": "version"
},
"/home/zkochan/src/pnpm/packages/pnpm/node_modules/pnpm-default-reporter"
]
],
"_from": "ansi-diff@1.1.1",
"_id": "ansi-diff@1.1.1",
"_inCache": true,
"_location": "/ansi-diff",
"_nodeVersion": "10.3.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/ansi-diff_1.1.1_1529156248291_0.2895378648585998"
},
"_npmUser": {
"name": "mafintosh",
"email": "mathiasbuus@gmail.com"
},
"_npmVersion": "6.1.0",
"_phantomChildren": {},
"_requested": {
"raw": "ansi-diff@1.1.1",
"scope": null,
"escapedName": "ansi-diff",
"name": "ansi-diff",
"rawSpec": "1.1.1",
"spec": "1.1.1",
"type": "version"
},
"_requiredBy": [
"/pnpm-default-reporter"
],
"_resolved": "https://registry.npmjs.org/ansi-diff/-/ansi-diff-1.1.1.tgz",
"_shasum": "67feeb6a24b4e5aa7f270d33d6a1b40e943bb080",
"_shrinkwrap": null,
"_spec": "ansi-diff@1.1.1",
"_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/pnpm-default-reporter",
"author": {
"name": "Mathias Buus",
"url": "@mafintosh"
},
"bugs": {
"url": "https://github.com/mafintosh/ansi-diff/issues"
},
"dependencies": {
"ansi-split": "^1.0.1"
},
"description": "A module that diffs an input buffer with the previous one provided to it and outputs the diff as ANSI",
"devDependencies": {
"standard": "^10.0.3"
},
"directories": {},
"dist": {
"integrity": "sha512-XnTdFDQzbEewrDx8epWXdw7oqHMvv315vEtfqDiEhhWghIf4++h26c3/FMz7iTLhNrnj56DNIXpbxHZq+3s6qw==",
"shasum": "67feeb6a24b4e5aa7f270d33d6a1b40e943bb080",
"tarball": "https://registry.npmjs.org/ansi-diff/-/ansi-diff-1.1.1.tgz",
"fileCount": 5,
"unpackedSize": 8717,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbJRKYCRA9TVsSAnZWagAANYoQAITTOhbd2ucBK4Snb7nz\nwVEEl7Xixq/39ztS79Xu90cldzbTGrK2OGz0FqMYKzuXKQV/pRh19/apC9Nc\nyoeSrvA467uVI9HP0pK611v3kl878Df8G4gtxZirLWvIBHhQ+bCAII0X36mN\nlFO2++9d/hyLSfWcfKvw89BhbnEpkM0A4WbNz3Lkp2k6XLnEsBFbKGw2/SlV\nxCPwWr//IRWoJg6BpnEIgARmm8TGs6d3SREDlyYdSqFeSkYKlQpjYoZGJHJ1\n7kj+ApLgEXxNfLHMe09C+OsR1CH+IjJLaGlCEJRPEbg7wUsnFQdb8yfopqLh\n81AuFPzftuopF77KlyZi4gxdlg+5rXu2w20dRxY9gwhxCCGbmoCbB+zdUxPA\nXHpL1mzMkvxF/qYvW7dV+DjuICZNqmrSd0nOHYDVVRhOSQPPgZKUDLyTCQtE\nnMSGg2qmoxe1ZovdM44R+zzRpwJ5vgq/e/W/4ah/vfxBAUzxHazJtGNjCV2a\nI2m9SBjnF8+omAFZo3Mwfl5E4GPT/JDFDbfpefDElqI9uW9BqvZ0220PK5Qz\nZiTfcrYFeCtUOSohM2+AKZXMsFHXXjJ/kDJCt63i1YOUO5rhDaykyBVr3Iu5\nCPTWfKw+P0RmZ82sOG8shDC+WG7eCHStGasrALvqZGWnbembH798lshTQZTL\nOPag\r\n=vbNJ\r\n-----END PGP SIGNATURE-----\r\n"
},
"gitHead": "a4c1c63b1855c4092c9e341305e1361860c13775",
"homepage": "https://github.com/mafintosh/ansi-diff",
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "mafintosh",
"email": "mathiasbuus@gmail.com"
}
],
"name": "ansi-diff",
"optionalDependencies": {},
"readme": "# ansi-diff\n\nA module that diffs an input buffer with the previous one provided to it and outputs the diff as ANSI.\nIf you write out the diff to the terminal it will update the previous output with minimal changes\n\n```\nnpm install ansi-diff\n```\n\n[](https://travis-ci.org/mafintosh/ansi-diff)\n\n## Usage\n\n``` js\nvar diff = require('ansi-diff')({\n // if you want to support word wrapping, provide the terminal width\n width: process.stdout.columns\n})\n\n// render now\nrender()\n\n// render every 1s\nsetInterval(render, 1000)\n\nfunction render () {\n // will update the terminal with minimal changes\n process.stdout.write(diff.update('hello world...\\n' + new Date()))\n}\n```\n\nIt also has terminal resize support\n\n``` js\nprocess.stdout.on('resize', function () {\n diff.resize({width: process.stdout.columns})\n render()\n})\n```\n\n## API\n\n#### `var diff = ansiDiff([options])`\n\nCreate a new differ. Options include:\n\n``` js\n{\n width: terminalWidth,\n height: terminalHeight\n}\n```\n\nIf you provide the terminal width ansi-diff will be able to support word wrapping\ndone by the terminal. That means that if you print out a line that is too long to fit in the terminal\nthe diff will still work.\n\n#### `var changes = diff.update(buffer, opts)`\n\nUpdate the buffer and return the diff between this and the previous one.\nThe diff is returned in ANSI as a buffer so you can write it out to the terminal.\n\n* `opts.moveTo` - array of `[column,row]` to move the cursor after diffing the\n screen (in absolute coordinates)\n\n#### `diff.resize([options])`\n\nUpdate the terminal width / height. If you are writing to stdout\nyou should update the width when `process.stdout.on('resize')` is fired.\n\nOptions should look like this:\n\n``` js\n{\n width: terminalWidth,\n height: terminalHeight\n}\n```\n\n#### `diff.toString()`\n\nReturns the last diffed string.\n\n#### `diff.width`\n\nProperty containing the last set terminal width.\n\n#### `diff.height`\n\nProperty containing the last set terminal height.\n\n## License\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/mafintosh/ansi-diff.git"
},
"scripts": {
"test": "standard"
},
"version": "1.1.1"
}