Socket
Socket
Sign inDemoInstall

tfk-360-unwrap-contact

Package Overview
Dependencies
0
Maintainers
4
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
Maintainers
4
Created

Readme

Source

Build Status Coverage Status Code Climate js-standard-style

tfk-360-unwrap-contact

Greenkeeper badge

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 run setup

$ npm run setup

Usage

Pass a result from GetPrivatePersonsResult

'use strict'

var unwrapContact = require('tfk-360-unwrap-contact')
var 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: ''
            }
          }
        ]
      }
    }
  }
}
var 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 15 Feb 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