Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mikeerickson/pkg-version-cli

CLI returning package.json version for current directory
https://github.com/mikeerickson/pkg-version-cli

Last synced: 15 days ago
JSON representation

CLI returning package.json version for current directory

Awesome Lists containing this project

README

        

# pkg-version-cli

## Intro
Simple CLI to return package.json version information for current directory. In addition, you can supply a different filename (instead of default package.json)

Install

```
$ npm i -g pkg-verison-cli
```

Usage

```
$ package-version
Current Version: #.#.# <-- returns current version
```

You can also supply an alternate json file (requires name and version properties)

```
$ package-version test.json
```

## Credits

pkg-version-cli written by Mike Erickson

E-Mail: [[email protected]](mailto:[email protected])

Twitter: [@codedungeon](http://twitter.com/codedungeon)

Website: [codedungeon.org](http://codedungeon.org)