Socket
Socket
Sign inDemoInstall

sparkline

Package Overview
Dependencies
6
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sparkline

A JavaScript implementation of 'spark'.


Version published
Maintainers
1
Install size
58.7 kB
Created

Readme

Source

sparkline Build Status

A JavaScript implementation of spark.

Usage

Node

Install the module with: npm install --save sparkline

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

Command line

Install the module globally with: npm install -g sparkline

$ 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.

<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.

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.

Keywords

FAQs

Last updated on 22 Jun 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc