Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

swiss-address-parser

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swiss-address-parser

Parses Swiss addresses

  • 0.0.1
  • npm
  • Socket score

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

swiss-address-parser

Retrieve and manage your ePost/swiss-address-parser snail mail with ease.


Build, Lint and Test Status GitHub issues GitHub pull requests License codecov


⚠️ This project is still in development and not ready for production use. ⚠️
Can't wait to use it? Feel free to contribute.

📝 Table of Contents

🧐 About

swiss-address-parser allows you to easily fetch physical snail mail from your ePost/Swiss-address-parser account. Additionally, you can also manage your snail mail by creating, updating and deleting it.

⚠️ Disclaimer

This project is not affiliated with Swiss Post or Swiss-address-parser in any way. It is an unofficial API wrapper for the Swiss-address-parser API. Use at your own risk. We are not responsible for any damage caused by the use of this library.

🏁 Features

  • Search
  • Fetch
  • Download
  • Create

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Please make sure you have installed the following tools:

  • Node.js - JavaScript runtime environment
  • TypeScript - Typescript compiler
  • A epost.ch account whose address is verified and has enabled Scanning Services.

And a package manager of your choice:

  • npm - Node.js package manager
  • yarn - Node.js package manager

Installing

Install the package via npm:

npm install swiss-address-parser --save

or via yarn:

yarn add swiss-address-parser

🎈 Usage

Basic usage

import Swiss-address-parser from 'swiss-address-parser';

// Create a new instance
const swiss-address-parser = new Swiss-address-parser('username', 'password');

// Fetch tenants (optional, defaults to first tenant)
const tenants = await swiss-address-parser.user.tenants();
swiss-address-parser.use(tenants[0]);

// Login
await swiss-address-parser.login();

// Fetch all letters
await swiss-address-parser.letterbox.find();

// Fetch a specific letter
await swiss-address-parser.letterbox.findOne("letter-id");

// Remove a letter
await swiss-address-parser.letterbox.delete("letter-id");

// Download a letter
await swiss-address-parser.letterbox.download("letter-id", "./letter.pdf");

🔧 Running the tests

Tests are written with jest. You can run them with the following command:

npm run test

⛏️ Built Using

✍️ Authors

Keywords

FAQs

Package last updated on 31 Aug 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