Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Crazy SVG odometer effect library. Library uses functional approach and ES7 Function Bind Syntax. Internals strongly inspired by d3.js library.
To install the stable version:
npm install --save bounty
The API is really simple and straigthforward:
import bounty from `bounty`;
bounty({ el: '.js-bounty', value: '£42,000,000' });
You can use it with other options:
import bounty from `bounty`;
bounty({
el: '.js-bounty',
value: '£42,000,000',
initialValue: '£900,000',
lineHeight: 1.35,
letterSpacing: 1,
animationDelay: 100,
letterAnimationDelay: 100
});
If you want to cancel the ongoing animation just call returned function:
import bounty from `bounty`;
const cancel = bounty({ el: '.js-bounty', value: '£42,000,000' });
cancel();
Library is built using UMD thus the following usage in HTML is possible.
<div class="js-bounty"></div>
<script src="/bounty.js"></script>
<script>
bounty.default({ el: '.js-bounty', value: '£42,000,000' })
</script>
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.
.js-bounty {
font-size: 60px;
font-family: Roboto;
fill: #fff;
text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}
There is a work in progress to implement additional features:
from
to
API.The library is available under the MIT license. See the LICENSE file for more info.
FAQs
SVG library for transitioning numbers with motion blur
The npm package bounty receives a total of 609 weekly downloads. As such, bounty popularity was classified as not popular.
We found that bounty demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.