Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bounty

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bounty - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

2

package.json
{
"name": "bounty",
"version": "1.1.2",
"version": "1.1.3",
"description": "SVG odometer effect",

@@ -5,0 +5,0 @@ "main": "lib/bounty.js",

@@ -14,7 +14,8 @@ SVG Odometer Effect Library

Examples
======
## Examples
The API is really simple and straigthforward:
```js
bounty.default({ el: '.js-bounty', value: '£42,000,000' });
import bounty from `bounty`;
bounty({ el: '.js-bounty', value: '£42,000,000' });
```

@@ -38,2 +39,4 @@

```js
import bounty from `bounty`;
const cancel = bounty({ el: '.js-bounty', value: '£42,000,000' });

@@ -43,16 +46,13 @@ cancel();

Library is built using umd thus the following usage is possible.
Library is built using **UMD** thus the following usage in **HTML** is possible.
```html
<body>
<div class="js-bounty"></div>
<script src="/bounty.js"></script>
<script>
bounty.default({ el: '.js-bounty', value: '£42,000,000' })
</script>
</body>
<div class="js-bounty"></div>
<script src="/bounty.js"></script>
<script>
bounty.default({ el: '.js-bounty', value: '£42,000,000' })
</script>
```
That's it?
=====
## That's it?
Yea! That's it. Other options like `font-family` and `font-size` are taken from **computed styles** so you can just style it like the other layers.

@@ -68,4 +68,3 @@ ```css

Roadmap
====
## Roadmap
There is a work in progress to implement additional features:

@@ -72,0 +71,0 @@ * `from` `to` API.

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc