<commit_before>NPM Version Badge URLs
===
[![NPM version][npm-image]][npm-url] [![Build Status][build-image]][build-url] [![Coverage Status][coverage-image]][coverage-url] [![Dependencies][dependencies-image]][dependencies-url]

> Creates [Shields.io][shields] badge URLs for a package's [NPM][npm] version.


## Installation

``` bash
$ npm install shields-badge-url-npm-version
```


## Usage

``` javascript
var urls = require( 'shields-badge-url-npm-version' );
```

#### urls( opts )

Creates [Shields.io][shields] badge URLs for a package's [NPM][npm] version.

``` javascript
var opts = {
	'package': 'dstructs-matrix'
};

var out = urls( opts );
/*
	{
		"image": "https://img.shields.io/npm/v/dstructs-matrix.svg?style=flat",
		"url": "https://npmjs.com/package/dstructs-matrix"
	}
*/ 
```

The `function` accepts the following `options`:
*	__package__: package name (*required*).
*	__style__: badge style. Default: `flat`.
*	__format__: badge format. Default: `svg`.


## Examples

``` javascript
var list = require( 'npm-list-author-packages' );
var urls = require( 'shields-badge-ur-npm-version' );

// Generate badge URLs for all of an author's packages...
list( {'username': 'kgryte'}, onList );

function onList( error, list ) {
	var badge;
	var opts;
	var i;
	if ( error ) {
		throw error;
	}
	if ( !list.length ) {
		return;
	}
	opts = {
		'packages': list
	};
	for ( i = 0; i < list.length; i++ ) {
		badge = urls({
			'package': list[ i ]
		});
		console.log( badge );
	}
}
```

To run the example code from the top-level application directory,

``` bash
$ node ./examples/index.js
```


---
## CLI

### Installation

To use the module as a general utility, install the module globally

``` bash
$ npm install -g shields-badge-url-npm-version
```


### Usage

``` bash
Usage: shields-npmv --package=<name> [options]

Options:

  -h,  --help                Print this message.
  -V,  --version             Print the package version.
       --package name        Package name.
       --style style         Badge style. Default: 'flat'.
       --format format       Badge format. Default: 'svg'.
```


### Examples

``` bash
$ shields-npmv --package=dstructs-matrix
# => {"image":"https://img.shields.io/npm/v/dstructs-matrix.svg?style=flat","url":"https://npmjs.com/package/dstructs-matrix"}
```


---
## Tests

### Unit

This repository uses [tape][tape] for unit tests. To run the tests, execute the following command in the top-level application directory:

``` bash
$ make test
```

All new feature development should have corresponding unit tests to validate correct functionality.


### Test Coverage

This repository uses [Istanbul][istanbul] as its code coverage tool. To generate a test coverage report, execute the following command in the top-level application directory:

``` bash
$ make test-cov
```

Istanbul creates a `./reports/coverage` directory. To access an HTML version of the report,

``` bash
$ make view-cov
```


### Browser Support

This repository uses [Testling][testling] for browser testing. To run the tests in a (headless) local web browser, execute the following command in the top-level application directory:

``` bash
$ make test-browsers
```

To view the tests in a local web browser,

``` bash
$ make view-browser-tests
```

<!-- [![browser support][browsers-image]][browsers-url] -->


---
## License

[MIT license](http://opensource.org/licenses/MIT).


## Copyright

Copyright &copy; 2016. <NAME>.


[npm-image]: http://img.shields.io/npm/v/shields-badge-url-npm-version.svg
[npm-url]: https://npmjs.org/package/shields-badge-url-npm-version

[build-image]: http://img.shields.io/travis/kgryte/shields-badge-url-npm-version/master.svg
[build-url]: https://travis-ci.org/kgryte/shields-badge-url-npm-version

[coverage-image]: https://img.shields.io/codecov/c/github/kgryte/shields-badge-url-npm-version/master.svg
[coverage-url]: https://codecov.io/github/kgryte/shields-badge-url-npm-version?branch=master

[dependencies-image]: http://img.shields.io/david/kgryte/shields-badge-url-npm-version.svg
[dependencies-url]: https://david-dm.org/kgryte/shields-badge-url-npm-version

[dev-dependencies-image]: http://img.shields.io/david/dev/kgryte/shields-badge-url-npm-version.svg
[dev-dependencies-url]: https://david-dm.org/dev/kgryte/shields-badge-url-npm-version

[github-issues-image]: http://img.shields.io/github/issues/kgryte/shields-badge-url-npm-version.svg
[github-issues-url]: https://github.com/kgryte/shields-badge-url-npm-version/issues

[tape]: https://github.com/substack/tape
[istanbul]: https://github.com/gotwarlost/istanbul
[testling]: https://ci.testling.com
[npm]: https://npm.com
[shields]: http://shields.io/<commit_msg>Fix npm link<commit_after>NPM Version Badge URLs
===
[![NPM version][npm-image]][npm-url] [![Build Status][build-image]][build-url] [![Coverage Status][coverage-image]][coverage-url] [![Dependencies][dependencies-image]][dependencies-url]

> Creates [Shields.io][shields] badge URLs for a package's [NPM][npm] version.


## Installation

``` bash
$ npm install shields-badge-url-npm-version
```


## Usage

``` javascript
var urls = require( 'shields-badge-url-npm-version' );
```

#### urls( opts )

Creates [Shields.io][shields] badge URLs for a package's [NPM][npm] version.

``` javascript
var opts = {
	'package': 'dstructs-matrix'
};

var out = urls( opts );
/*
	{
		"image": "https://img.shields.io/npm/v/dstructs-matrix.svg?style=flat",
		"url": "https://npmjs.com/package/dstructs-matrix"
	}
*/ 
```

The `function` accepts the following `options`:
*	__package__: package name (*required*).
*	__style__: badge style. Default: `flat`.
*	__format__: badge format. Default: `svg`.


## Examples

``` javascript
var list = require( 'npm-list-author-packages' );
var urls = require( 'shields-badge-ur-npm-version' );

// Generate badge URLs for all of an author's packages...
list( {'username': 'kgryte'}, onList );

function onList( error, list ) {
	var badge;
	var opts;
	var i;
	if ( error ) {
		throw error;
	}
	if ( !list.length ) {
		return;
	}
	opts = {
		'packages': list
	};
	for ( i = 0; i < list.length; i++ ) {
		badge = urls({
			'package': list[ i ]
		});
		console.log( badge );
	}
}
```

To run the example code from the top-level application directory,

``` bash
$ node ./examples/index.js
```


---
## CLI

### Installation

To use the module as a general utility, install the module globally

``` bash
$ npm install -g shields-badge-url-npm-version
```


### Usage

``` bash
Usage: shields-npmv --package=<name> [options]

Options:

  -h,  --help                Print this message.
  -V,  --version             Print the package version.
       --package name        Package name.
       --style style         Badge style. Default: 'flat'.
       --format format       Badge format. Default: 'svg'.
```


### Examples

``` bash
$ shields-npmv --package=dstructs-matrix
# => {"image":"https://img.shields.io/npm/v/dstructs-matrix.svg?style=flat","url":"https://npmjs.com/package/dstructs-matrix"}
```


---
## Tests

### Unit

This repository uses [tape][tape] for unit tests. To run the tests, execute the following command in the top-level application directory:

``` bash
$ make test
```

All new feature development should have corresponding unit tests to validate correct functionality.


### Test Coverage

This repository uses [Istanbul][istanbul] as its code coverage tool. To generate a test coverage report, execute the following command in the top-level application directory:

``` bash
$ make test-cov
```

Istanbul creates a `./reports/coverage` directory. To access an HTML version of the report,

``` bash
$ make view-cov
```


### Browser Support

This repository uses [Testling][testling] for browser testing. To run the tests in a (headless) local web browser, execute the following command in the top-level application directory:

``` bash
$ make test-browsers
```

To view the tests in a local web browser,

``` bash
$ make view-browser-tests
```

<!-- [![browser support][browsers-image]][browsers-url] -->


---
## License

[MIT license](http://opensource.org/licenses/MIT).


## Copyright

Copyright &copy; 2016. <NAME>.


[npm-image]: http://img.shields.io/npm/v/shields-badge-url-npm-version.svg
[npm-url]: https://npmjs.org/package/shields-badge-url-npm-version

[build-image]: http://img.shields.io/travis/kgryte/shields-badge-url-npm-version/master.svg
[build-url]: https://travis-ci.org/kgryte/shields-badge-url-npm-version

[coverage-image]: https://img.shields.io/codecov/c/github/kgryte/shields-badge-url-npm-version/master.svg
[coverage-url]: https://codecov.io/github/kgryte/shields-badge-url-npm-version?branch=master

[dependencies-image]: http://img.shields.io/david/kgryte/shields-badge-url-npm-version.svg
[dependencies-url]: https://david-dm.org/kgryte/shields-badge-url-npm-version

[dev-dependencies-image]: http://img.shields.io/david/dev/kgryte/shields-badge-url-npm-version.svg
[dev-dependencies-url]: https://david-dm.org/dev/kgryte/shields-badge-url-npm-version

[github-issues-image]: http://img.shields.io/github/issues/kgryte/shields-badge-url-npm-version.svg
[github-issues-url]: https://github.com/kgryte/shields-badge-url-npm-version/issues

[tape]: https://github.com/substack/tape
[istanbul]: https://github.com/gotwarlost/istanbul
[testling]: https://ci.testling.com
[npm]: https://npmjs.com
[shields]: http://shields.io/
{'fraction_non_alphanumeric': 0.16920293710758752, 'fraction_numerical': 0.0010641694157709908, 'mean_word_length': 3.831876606683805, 'pattern_counts': {'":': 8, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 30, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4564107', 'n_tokens_mistral': 3507, 'n_tokens_neox': 3162, 'n_words': 745}