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

tfk-saksbehandling-skoleskyss-nsb

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tfk-saksbehandling-skoleskyss-nsb

Checks if NSB is transporter

  • 3.0.15
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

Build Status Coverage Status js-standard-style

tfk-saksbehandling-skoleskyss-nsb

Greenkeeper badge Node-module for identifying NSB as transporter.

It uses a combination of zipcodes and schoolids.

Installation

From npm

$ npm i tfk-saksbehandling-skoleskyss-nsb

From GitHub

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

cd into the directory and run the setup script

$ npm run setup

This will install the module dependencies

Usage

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

postnummer zipcode, required

skole schoolid, required


'use strict';

const transportByNSB = require('tfk-saksbehandling-skoleskyss-nsb')
const drangedal = {
  postnummer: 3750,
  skoleid: 3802
}
const fyresdal = {
  postnummer: 3870,
  skoleid: 3802
}

console.log(transportByNSB(drangedal)) //=> true

console.log(transportByNSB(fyresdal)) //=> false

The logic is explained in the docs/postkoder.pr.vgs.skole.2016.xlsx file

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

Test

$ npm test

Keywords

FAQs

Package last updated on 09 Apr 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