New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-countup

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-countup - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

examples/basic/index.js

@@ -9,5 +9,5 @@ import React from 'react';

<div className={styles.Wrapper}>
<CountUp className={styles.CountUp} start={0} end={160526} />
<CountUp className={styles.CountUp} start={0} end={2016} duration={3} separator="" />
</div>,
document.getElementById('root')
);
{
"name": "react-countup",
"version": "1.0.0",
"version": "1.0.1",
"description": "A React component wrapper around CountUp.js",

@@ -51,2 +51,3 @@ "author": "Glenn Reyes",

"babel-preset-stage-0": "^6.5.0",
"coveralls": "^2.11.9",
"cross-env": "^1.0.8",

@@ -53,0 +54,0 @@ "enzyme": "^2.3.0",

@@ -14,2 +14,3 @@ import React, { PropTypes } from 'react';

separator,
decimals,
decimal,

@@ -20,3 +21,3 @@ prefix,

} = this.props;
const countup = new Count(findDOMNode(this), start, end, duration, {
const countup = new Count(findDOMNode(this), start, end, decimals, duration, {
useEasing,

@@ -42,6 +43,7 @@ useGrouping,

start: 0,
end: 100,
duration: 2.5,
end: 2016,
decimals: 0,
duration: 4,
useEasing: true,
useGrouping: true,
useGrouping: false,
separator: ',',

@@ -58,2 +60,3 @@ decimal: '.',

end: PropTypes.number.isRequired,
decimals: PropTypes.number,
duration: PropTypes.number,

@@ -60,0 +63,0 @@ useEasing: PropTypes.bool,

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