Socket
Socket
Sign inDemoInstall

tfk-saksbehandling-skoleskyss-fara

Package Overview
Dependencies
1
Maintainers
4
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tfk-saksbehandling-skoleskyss-fara

Checks if FARA is transporter


Version published
Weekly downloads
0
decreased by-100%
Maintainers
4
Install size
135 kB
Created
Weekly downloads
 

Readme

Source

Build Status Coverage Status js-standard-style Greenkeeper badge

tfk-saksbehandling-skoleskyss-fara

Node-module for identifying FARA as transporter.

It uses a combination of zipcodes and schoolids.

Installation

From GitHub

$ git clone git@github.com:telemark/tfk-saksbehandling-skoleskyss-fara.git

cd into the directory and run the setup script

$ npm run setup

This will install the module dependencies and generate the zipcode files

Usage

Pass in an options object and get true or false in return.

gatenavn street name, required

husnummer street number, required

postnummer zipcode, required

skole schoolid, required


'use strict'

const transportByFara = require('tfk-saksbehandling-skoleskyss-fara');
const options = {
  gatenavn: 'Kongsbergvegen',
  husnummer: '79',
  postnummer: 3681,
  skoleid: 3880
}

console.log(transportByFara(options)) //Returns true

The logic is explained in the docs/rules.md

The complete list of schoolids is in lib/data/skoleliste_full.json

Test

$ npm test

License

MIT

Robohash image of tfk-saksbehandling-skoleskyss-fara

Keywords

FAQs

Last updated on 15 Aug 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc