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

traffic-fine-calculator

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

traffic-fine-calculator

A leightweight JavaScript traffic fine calculator

  • 0.9.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

traffic-fine-calculator

By Oceanhouse21

Build Status

A leightweight traffic fine calculator for JavaScript. Currently only German law is supported.

USAGE

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"'

ARGUMENTS

Example usage for different types

Speeding

traffic-fine-calculator({
    type: 'speeding',
    speed: 50,
    in_town: false //out of town
});

Distance

traffic-fine-calculator({
    type: 'distance',
    speed: 50,
    distance: 0.1, // less than 1/10 of half of the speedometer
    thread: true,
    damage: true
});

Alcohol

traffic-fine-calculator({
    type: 'alcohol',
    permille: 50,
    entries: 3,
    probation: true,
    thread: false
});

Traffic light

traffic-fine-calculator({
    type: 'traffic_light',
    more_than_one_sec: true,
    thread: true,
    damage: false
});

LICENSE

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.

Keywords

FAQs

Package last updated on 16 Jan 2015

Did you know?

Socket

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.

Install

Related posts

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