{"_id":"@pnpm/colorize-semver-diff","_rev":"950394","name":"@pnpm/colorize-semver-diff","description":"Makes a colorful semver diff","dist-tags":{"latest":"1.0.1","next":"1.0.1"},"maintainers":[{"name":"pnpmuser","email":"zoltan.kochan@gmail.com"},{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"time":{"modified":"2021-11-28T10:51:04.000Z","created":"2020-01-15T19:00:50.024Z","1.0.1":"2020-10-25T15:50:17.812Z","1.0.0":"2020-01-15T19:00:50.024Z"},"users":{},"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io"},"repository":{"type":"git","url":"git+https://github.com/pnpm/colorize-semver-diff.git"},"versions":{"1.0.1":{"name":"@pnpm/colorize-semver-diff","version":"1.0.1","description":"Makes a colorful semver diff","main":"lib/index.js","typings":"lib/index.d.ts","engines":{"node":">=10"},"scripts":{"lint":"tslint -c tslint.json src/**/*.ts test.ts","test":"pnpm run lint && ts-node test --type-check","tsc":"rimraf lib && tsc","prepublishOnly":"pnpm run tsc"},"repository":{"type":"git","url":"git+https://github.com/pnpm/colorize-semver-diff.git"},"keywords":["semver","diff","color"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io"},"license":"MIT","bugs":{"url":"https://github.com/pnpm/colorize-semver-diff/issues"},"homepage":"https://github.com/pnpm/colorize-semver-diff#readme","devDependencies":{"@pnpm/tsconfig":"^1.0.0","@pnpm/tslint-config":"^1.0.0","@types/node":"^14.14.2","@types/tape":"^4.13.0","rimraf":"^3.0.2","tape":"^5.0.1","ts-node":"^9.0.0","tslint":"^6.1.3","typescript":"^4.0.3"},"dependencies":{"chalk":"^4.1.0"},"readmeFilename":"README.md","gitHead":"3b10360f5d6c353aa87b645d58dfd321ce3b417f","_id":"@pnpm/colorize-semver-diff@1.0.1","_nodeVersion":"12.18.3","_npmVersion":"7.0.0","dist":{"shasum":"92c41c8b2876d6d0da30acc1ff9c81b63498454c","size":2506,"noattachment":false,"key":"/@pnpm/colorize-semver-diff/-/@pnpm/colorize-semver-diff-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@pnpm/colorize-semver-diff/download/@pnpm/colorize-semver-diff-1.0.1.tgz"},"maintainers":[{"name":"pnpmuser","email":"zoltan.kochan@gmail.com"},{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/colorize-semver-diff_1.0.1_1603641017690_0.051366892145963794"},"_hasShrinkwrap":false,"publish_time":1603641017812,"_cnpm_publish_time":1603641017812},"1.0.0":{"name":"@pnpm/colorize-semver-diff","version":"1.0.0","description":"Makes a colorful semver diff","main":"lib/index.js","typings":"lib/index.d.ts","engines":{"node":">=10"},"scripts":{"lint":"tslint -c tslint.json src/**/*.ts test.ts","test":"pnpm run lint && ts-node test --type-check","tsc":"rimraf lib && tsc","prepublishOnly":"pnpm run tsc"},"repository":{"type":"git","url":"git+https://github.com/pnpm/colorize-semver-diff.git"},"keywords":["semver","diff","color"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io"},"license":"MIT","bugs":{"url":"https://github.com/pnpm/colorize-semver-diff/issues"},"homepage":"https://github.com/pnpm/colorize-semver-diff#readme","devDependencies":{"@pnpm/tsconfig":"^1.0.0","@pnpm/tslint-config":"^1.0.0","@types/node":"^12.12.21","@types/tape":"^4.2.33","rimraf":"^3.0.0","tape":"^4.12.0","ts-node":"^8.5.4","tslint":"^5.20.1","typescript":"^3.7.3"},"dependencies":{"chalk":"^3.0.0"},"gitHead":"ed75a58871b6ff6e701bc43e8e7044a211ca9365","_id":"@pnpm/colorize-semver-diff@1.0.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"shasum":"177e9ad754affe57394ac05a242e73617ecd9864","size":2474,"noattachment":false,"key":"/@pnpm/colorize-semver-diff/-/@pnpm/colorize-semver-diff-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@pnpm/colorize-semver-diff/download/@pnpm/colorize-semver-diff-1.0.0.tgz"},"maintainers":[{"name":"pnpmuser","email":"zoltan.kochan@gmail.com"},{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/colorize-semver-diff_1.0.0_1579114849879_0.7744428268871746"},"_hasShrinkwrap":false,"publish_time":1579114850024,"_cnpm_publish_time":1579114850024}},"readme":"# @pnpm/colorize-semver-diff\n\n> Makes a colorful semver diff\n\n<!--@shields('npm', 'travis')-->\n[![npm version](https://img.shields.io/npm/v/@pnpm/colorize-semver-diff.svg)](https://www.npmjs.com/package/@pnpm/colorize-semver-diff) [![Build Status](https://img.shields.io/travis/pnpm/colorize-semver-diff/master.svg)](https://travis-ci.org/pnpm/colorize-semver-diff)\n<!--/@-->\n\n## Installation\n\n```sh\n<pnpm|yarn|npm> add @pnpm/colorize-semver-diff\n```\n\n## Usage\n\n```ts\nimport colorizeSemverDiff from '@pnpm/colorize-semver-diff'\n\nconsole.log(colorizeSemverDiff({\n  change: 'feature',\n  diff: [['2'], ['1', '0', 'rc', '1']]\n}))\n```\n\n## API\n\n### colorizeSemverDiff(semverDiff)\n\nReturns a string with ANSI colors.\n\n#### semverDiff.change\n\ntype: `unknown`, `breaking`, `feature`, `fix`\n\n#### semverDiff.diff[0]\n\ntype: `string[]`\n\nAn array of version parts that are unchanged. For instance, in a diff between\n`1.0.0` and `1.2.0` the unchanged part will be `['1']`.\n\n#### semverDiff.diff[1]\n\ntype: `string[]`\n\nAn array of version parts that are changed. For instance, in a diff between\n`1.0.0` and `1.2.0` the changed part will be `['2', '0']`.\n\n## Related\n\n* [@pnpm/semver-diff](https://github.com/pnpm/semver-diff) - Gets the difference between two semver versions\n\n## License\n\n[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io/)\n","_attachments":{},"readmeFilename":"README.md","homepage":"https://github.com/pnpm/colorize-semver-diff#readme","bugs":{"url":"https://github.com/pnpm/colorize-semver-diff/issues"},"license":"MIT"}