Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
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
The npm package traffic-fine-calculator receives a total of 2 weekly downloads. As such, traffic-fine-calculator popularity was classified as not popular.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.