Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vladholubiev/pretty-version-diff
Print semver version diff like sindresorhus/np CLI
https://github.com/vladholubiev/pretty-version-diff
cli diff npm-module npm-package pretty semver
Last synced: about 2 months ago
JSON representation
Print semver version diff like sindresorhus/np CLI
- Host: GitHub
- URL: https://github.com/vladholubiev/pretty-version-diff
- Owner: vladholubiev
- License: mit
- Created: 2018-01-27T19:53:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-11T11:59:51.000Z (about 4 years ago)
- Last Synced: 2024-08-10T22:54:20.856Z (5 months ago)
- Topics: cli, diff, npm-module, npm-package, pretty, semver
- Language: JavaScript
- Size: 167 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# pretty-version-diff [![CircleCI](https://img.shields.io/circleci/project/github/vladgolubev/pretty-version-diff.svg)](https://circleci.com/gh/vladgolubev/pretty-version-diff) ![](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)
> Print semver version diff like sindresorhus/np CLI
Credits to: [sindresorhus/np](https://github.com/sindresorhus/np/blob/master/lib/ui.js#L9)
## Install
```
$ yarn add pretty-version-diff
```## Usage
```js
const prettyVersionDiff = require('pretty-version-diff');prettyVersionDiff('1.0.0', 'patch'); // see screenshot below
```![](demo.png)
## License
MIT © [Vlad Holubiev](https://vladholubiev.com)