Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)