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

@opuscapita/electronic-address

Package Overview
Dependencies
Maintainers
9
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opuscapita/electronic-address

Library for decoding and encoding electronic addresses

  • 0.6.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
64
decreased by-16.88%
Maintainers
9
Weekly downloads
 
Created
Source

electronic-address

Library to decode and encode electronic addresses for routing

Encoding is based on ISO6523. Details can be found at https://www.galaxygw.com/iso6523/


Setup

Install library by running:

npm install @opuscapita/electronic-address

Examples to decode and encode electronic addresses:

const electronicAddress = require('@opuscapita/electronic-address');

// decode an electronic invoice
electronicAddress.decode('9930:DE12345678542');
// returns object { type: 'vat', value: 'DE123456785', ext: '42' }

// encode an electronic invoice
electronicAddress.encode({ type: 'gln', value: '4324565678967' });
// returns '0088:4324565678967'

// For type `orgnr`, the country must be specified. E.g.
electronicAddress.encode({ type: 'orgnr', value: '54323456', country: 'DK' });
// returns '9902:54323456'

type can be one of the following:

  • vat
  • gln
  • ovt
  • duns
  • orgnr

Keywords

FAQs

Package last updated on 28 Sep 2023

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