New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tfk-dsf-unwrap-contact

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tfk-dsf-unwrap-contact

Unwraps contact information from dsf result

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Weekly downloads
 
Created
Source

Build Status Coverage Status js-standard-style

tfk-dsf-unwrap-contact

Unwraps contact from dsf

Installation

From npm

$ npm install tfk-dsf-unwrap-contact

From GitHub

$ git clone git@github.com:telemark/tfk-dsf-unwrap-contact.git

cd into directory and run setup

$ npm run setup

Usage

'use strict'

var unwrapContact = require('tfk-dsf')
var data = {
 RESULT: {
   HOV: {
     FODT: '220486',
     PERS: '12345',
     INR: '22048612345',
     FODTAR: '1986',
     'STAT-KD': '1',
     STAT: 'BOSATT',
     'NAVN-S': 'GRÅ',
     'NAVN-F': 'GANDALF',
     'NAVN-M': {},
     NAVN: 'GRÅ GANDALF',
     'NAVN-D': {},
     ADRR: '20060822',
     ADRF: '20060818',
     ADR: 'SNIPPETSTADSTREDET 24',
     POSTN: '1732',
     POSTS: 'HØTTEN',
     KOMNR: '0707',
     KOMNA: 'HØTTEN',
     GATE: '01880',
     HUS: '0024',
     ADRTYPE: 'O',
     FKOM: '0501',
     'FKOM-N': 'LILLEHAMMER',
     'FKOM-R': '19990713',
     'FKOM-F': '19990701',
     UTVT: {},
     'UTVT-N': {},
     'UTVT-R': {},
     'UTVT-F': {},
     AARSADR: '24',
     'SPES-KD': '0',
     SPES: 'VANLIG BOSATT',
     SKKR: '0005',
     VAKR: '0010',
     GRUNNKR: '0411',
     MELD: {},
     'K-FAMNR': '22048612345',
     'FAMNR-D': '19980718',
     PERSKODE: '1',
     'EKT-FODT': '050180',
     'EKT-PERS': '54321',
     'EKT-INR': '05018054321',
     Barn: [
       {
         'BAR-FODT': '080907',
         'BAR-PERS': '98765',
         'BAR-INR': '08090798765',
         'BAR-KJO': 'K'
       },
       {
         'BAR-FODT': '070603',
         'BAR-PERS': '56789',
         'BAR-INR': '07060356789',
         'BAR-KJO': 'M'
       }
     ],
     'MOR-FODT': '030450',
     'MOR-PERS': '19285',
     'MOR-INR': '03045019285',
     'FAR-FODT': '020850',
     'FAR-PERS': '91825',
     'FAR-INR': '1928591825',
     KJONN: 'M',
     FODKNR: '1201',
     FODK: "BERGEN",
     FODS: {}
    }
  }
}

data.templatePath = 'lib/data/skoleskyss.json' // To use another template

console.log(unwrapContact(data))

returns

{ 
  FODT: '220486',
  PERS: '12345',
  INR: '22048612345',
  FODTAR: '1986',
  'NAVN-S': 'GRÅ',
  'NAVN-F': 'GANDALF',
  'NAVN-M': {},
  NAVN: 'GRÅ GANDALF',
  ADR: 'SNIPPETSTADSTREDET 24',
  POSTN: '1732',
  POSTS: 'HØTTEN',
  'SPES-KD': '0',
  SPES: 'VANLIG BOSATT' 
}

License

MIT

Keywords

FAQs

Package last updated on 29 Jun 2016

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