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

tfk-saksbehandling-skoleskyss-tbr

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tfk-saksbehandling-skoleskyss-tbr

Checks if TBR is transporter

  • 6.0.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by500%
Maintainers
4
Weekly downloads
 
Created
Source

Build Status Coverage Status js-standard-style

tfk-saksbehandling-skoleskyss-tbr

Greenkeeper badge Node-module for identifying Telemark Bilruter as transporter.

It uses a combination of zipcodes and schoolids.

Installation

From GitHub

$ git clone git@github.com:telemark/tfk-saksbehandling-skoleskyss-tbr.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.

postnummer zipcode, required

skole schoolid, required


'use strict';

var transportByTbr = require('tfk-saksbehandling-skoleskyss-tbr');
var options = {
  postnummer: 3681,
  skoleid: 3880
};

console.log(transportByTbr(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

Keywords

FAQs

Package last updated on 12 Feb 2017

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