Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
tfk-dsf-normalize-contact
Advanced tools
Readme
Maps contact information from dsf to something more useful
From npm
$ npm install tfk-dsf-normalize-contact
From GitHub
$ git clone
cd into directory and run setup
$ npm install
const normalizeContact = require('tfk-dsf-normalize-contact')
const dsf = {
'FODT': '181171',
'PERS': '12345',
'INR': '18117108976',
'FODTAR': '1971',
'STAT-KD': '1',
'STAT': 'BOSATT',
'NAVN-S': 'GRÅ',
'NAVN-F': 'GANDALF',
'NAVN-M': 'GEORG',
'NAVN': 'GRÅ GANDALF GEORG',
'ADR': 'FYLKESBAKKEN 10',
'POSTN': '3715',
'POSTS': 'SKIEN',
'SPES-KD': '0',
'SPES': 'VANLIG BOSATT',
'KJONN': 'M',
'STAT': 'BOSATT',
'MOR-FODT': '010166',
'MOR-PERS': '33333',
'FAR-FODT': '020265',
'FAR-PERS': '11111',
'Barn': [
{
'BAR-FODT': '020280',
'BAR-PERS': '99999',
'BAR-INR': '02028099999',
'BAR-KJO': 'M'
},
{
'BAR-FODT': '040481',
'BAR-PERS': '88888',
'BAR-INR': '04048166666',
'BAR-KJO': 'K'
}
],
}
console.log(normalizeContact(dsf))
Returns
{
'personalIdNumber': '24069844444',
'birthDate': '1998-06-24',
'firstName': 'Gandalf',
'middleName': 'Georg',
'lastName': 'Grå',
'fullName': 'Gandalf Georg Grå',
'address': 'Oppfunnet Gate 30',
'zip': '3717',
'city': 'Skien',
'gender': 'Male',
'alive': true,
'motherIdNumber': '01016633333',
'fatherIdNumber': '02026511111',
'spouseIdNumber': '',
'children':
[
{ 'childIdNumber': '02028099999' },
{ 'childIdNumber': '04048188888' }
]
}
FAQs
Transforms contact information from dsf to something useful
The npm package tfk-dsf-normalize-contact receives a total of 10 weekly downloads. As such, tfk-dsf-normalize-contact popularity was classified as not popular.
We found that tfk-dsf-normalize-contact demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.