npm package: @nodecov/cli
Description: The coverage report transporter tool for nodecov
Author: nodecov
Latest version: 1.0.2

<h1 align="center">Welcome to @nodecov/cli 👋</h1>
<p>
  <img alt="Version" src="https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000" />
  <img src="https://img.shields.io/badge/node-%3E%3D4.0-blue.svg" />
  <a href="https://github.com/nodecov/cli#readme">
    <img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" target="_blank" />
  </a>
  <a href="https://github.com/nodecov/cli/graphs/commit-activity">
    <img alt="Maintenance" src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" target="_blank" />
  </a>
  <a href="https://github.com/nodecov/cli/blob/master/LICENSE">
    <img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" target="_blank" />
  </a>
  <a href="https://twitter.com/md5hashbrown">
    <img alt="Twitter: md5hashbrown" src="https://img.shields.io/twitter/follow/md5hashbrown.svg?style=social" target="_blank" />
  </a>
</p>

> The coverage report transporter tool for nodecov

### 🏠 [Homepage](https://github.com/nodecov/cli)

## Prerequisites

- node >=4.0

## Install

```sh
npm install nodecov --save-dev
```

or

```sh
yarn add nodecov --dev
```

## Usage:

This script ( `bin/nodecov` ) detect your CI provider and all coverage reports and uploads them to nodecov.

Once your app is instrumented for coverage, and building, simply call `./node_modules/.bin/nodecov`.

This library currently supports the following CI companies: [Travis CI](https://travis-ci.org/), [Travis](https://travis-ci.com/), [Appveyor](https://appveyor.com/), [CircleCI](https://circleci.com/), [Cirrus CI](https://cirrus-ci.org/), [Codeship](https://codeship.io/), [Drone](https://drone.io/), [Jenkins](http://jenkins-ci.org/), [Shippable](https://shippable.com/), [Semaphore](https://semaphoreapp.com/), [Wercker](https://wercker.com/), [Snap CI](https://snap-ci.com/), [Buildkite](https://buildkite.com/).

#### Upload repo tokens

> Repo tokens are **not** required for public repos tested on Travis-Org, CircleCI or AppVeyor.

Repo tokens are necessary to distinguish your repository from others. You can find your repo token on your repository page at nodecov. Set this unique uuid to `nodecov_TOKEN` in your environment variables.

```
export nodecov_TOKEN=":uuid-repo-token"
# or
./node_modules/.bin/nodecov --token=:token
# or
./node_modules/.bin/nyc report --reporter=text-lcov | ./node_modules/.bin/nodecov --pipe
```

#### [Istanbul](https://github.com/gotwarlost/istanbul)

**With Mocha:**

```sh
istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec
./node_modules/.bin/nodecov
```

**With Jasmine:**

```sh
istanbul cover jasmine-node --captureExceptions spec/
./node_modules/.bin/nodecov
```

**With Tape:**

```sh
istanbul cover test.js
./node_modules/.bin/nodecov
```

[travis-image]: https://travis-ci.org/nodecov/cli.svg?branch=master
[travis-url]: https://travis-ci.org/nodecov/cli
[appveyor-image]: https://ci.appveyor.com/api/projects/status/ea1suiv0tprnq61l?svg=true
[appveyor-url]: https://ci.appveyor.com/project/eddiemoore/cli/branch/master
[npm-url]: https://npmjs.org/package/nodecov
[npm-image]: https://img.shields.io/npm/v/nodecov.svg
[depstat-url]: https://david-dm.org/nodecov/cli
[depstat-image]: https://img.shields.io/david/nodecov/cli/master.svg
[devdepstat-url]: https://david-dm.org/nodecov/cli#info=devDependencies
[devdepstat-image]: https://img.shields.io/david/dev/nodecov/cli/master.svg

**With NYC**

```
nyc npm test
nyc report --reporter=text-lcov > coverage.lcov
./node_modules/.bin/nodecov
```

## Run tests

```sh
yarn test
```

## Author

👤 **Nusrath Khan <nusrath501khan@gmail.com>**

- Twitter: [@md5hashbrown](https://twitter.com/md5hashbrown)
- Github: [@nunsie](https://github.com/nunsie)

## 🤝 Contributing

Contributions, issues and feature requests are welcome!<br />Feel free to check [issues page](https://github.com/nodecov/cli/issues).

## Show your support

Give a ⭐️ if this project helped you!

## 📝 License

Copyright © 2019 [Nusrath Khan <nusrath501khan@gmail.com>](https://github.com/nunsie).<br />
This project is [MIT](https://github.com/nodecov/cli/blob/master/LICENSE) licensed.