# sparkline

> A JavaScript implementation of 'spark'.

Latest version **0.2.0** (published 2017-06-22) · 0 weekly downloads

## Install

```sh
npm install sparkline
pnpm add sparkline
yarn add sparkline
bun add sparkline
```

Provides the command `sparkline`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2017-06-22 |
| First published | 2013-05-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 32 |
| Author | Shogo Iwano |
| Maintainers | shiwano |
| Keywords | spark, graph |

## Links

- npm: https://www.npmjs.com/package/sparkline
- Repository: https://github.com/shiwano/sparkline
- Issues: https://github.com/shiwano/sparkline/issues
- npm.io page: https://npm.io/package/sparkline

## Dependencies (2)

- [here](https://npm.io/package/here.md) 0.0.2
- [nopt](https://npm.io/package/nopt.md) ~4.0.1

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2017-06-22
- 0.1.2 — 2015-07-16
- 0.1.1 — 2013-05-31
- 0.1.0 — 2013-05-29

## README

# sparkline [![Build Status](https://secure.travis-ci.org/shiwano/sparkline.png?branch=master)](http://travis-ci.org/shiwano/sparkline)

A JavaScript implementation of [spark](https://github.com/holman/spark).

## Usage

### Node

Install the module with: `npm install --save sparkline`

```javascript
var sparkline = require('sparkline');
sparkline([1, 5, 22, 7, 9]);
```

### Command line

Install the module globally with: `npm install -g sparkline`

```shell
$ sparkline 12 43 56 30 15
▁▅█▃▁
$ echo 21,45,6,25,19,15 | sparkline
▃█▁▄▃▂
```

### Browser

Download the script file to your server, and add the script tag to your HTML file.

```html
<script src="http://example.com/sparkline.js"></script>
<script>
  sparkline([8, 31, 5, 20, 24]);
</script>
```

## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).

## Release History
 * 2017-06-23   v0.2.0   Add html option, and fix overflow bug.
 * 2015-07-17   v0.1.2   Add min/max options
 * 2013-06-01   v0.1.1   Support AMD and bower
 * 2013-05-30   v0.1.0   First release.

## License
Copyright (c) 2013 Shogo Iwano
Licensed under the MIT license.

---
_Source: https://npm.io/package/sparkline · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
