Socket
Socket
Sign inDemoInstall

tfk-360-unwrap-contact

Package Overview
Dependencies
0
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tfk-360-unwrap-contact

Unwraps GetPrivatePersonsResult from Public 360


Version published
Weekly downloads
1
decreased by-92.31%
Maintainers
3
Install size
10.8 kB
Created
Weekly downloads
 

Readme

Source

Build Status Coverage Status Code Climate js-standard-style

tfk-360-unwrap-contact

Module for unwrapping a contact from Public360's GetPrivatePersonsResult

Installation

From npm

$ npm install tfk-360-unwrap-contact

From GitHub

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

cd into directory and install dependencies

$ npm install

Usage

Pass a result from GetPrivatePersonsResult

const unwrapContact = require('tfk-360-unwrap-contact')
const result = {
  GetPrivatePersonsResult: {
    Successful: true,
    PrivatePersons: {
      PrivatePersonBase: [
        {
          Email: 'xxx',
          FirstName: 'xxx',
          LastName: 'xxx',
          PersonalIdNumber: 'xxx',
          PhoneNumber: 'xxx',
            PrivateAddress: {
              Area: '',
              Country: 'NOR',
              County: '',
              State: '',
              StreetAddress: '<HEMMELIG ADRESSE>',
              ZipCode: '',
              ZipPlace: ''
            }
          }
        ]
      }
    }
  }
}

const contact = unwrapContact(result)
 
console.log(contact)

returns

{
  Email: 'xxx',
  FirstName: 'xxx',
  LastName: 'xxx',
  PersonalIdNumber: 'xxx',
  PhoneNumber: 'xxx',
    PrivateAddress: {
      Area: '',
      Country: 'NOR',
      County: '',
      State: '',
      StreetAddress: '<HEMMELIG ADRESSE>',
      ZipCode: '',
      ZipPlace: ''
    }
}

##License

MIT

Keywords

FAQs

Last updated on 25 Jan 2021

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