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.
traffic-fine-calculator
Advanced tools
By Oceanhouse21
A leightweight traffic fine calculator for JavaScript. Currently only German law is supported.
var traffic-fine-calculator = require('traffic-fine-calculator')
// Arguments depend on type of traffic fine
// Example for speeding, speed is in km/h
var result = traffic-fine-calculator(type: 'speeding', speed: 50, in_town: false)
// 'result: "3 Punkte und Geld- oder Freiheitsstrafe und Führerscheinentrzug"'
Example usage for different types
traffic-fine-calculator({
type: 'speeding',
speed: 50,
in_town: false //out of town
});
traffic-fine-calculator({
type: 'distance',
speed: 50,
distance: 0.1, // less than 1/10 of half of the speedometer
thread: true,
damage: true
});
traffic-fine-calculator({
type: 'alcohol',
permille: 50,
entries: 3,
probation: true,
thread: false
});
traffic-fine-calculator({
type: 'traffic_light',
more_than_one_sec: true,
thread: true,
damage: false
});
MIT License. Copyright 2014-2015 Oceanhouse21 GmbH. http://www.oceanhouse21.com
You are not granted rights or licenses to the trademarks of Oceanhouse21 GmbH, including without limitation the traffic-fine-calculator name.
FAQs
A leightweight JavaScript traffic fine calculator
We found that traffic-fine-calculator 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.