Skip to content

simonjutz/swiss-address-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

21 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

swiss-address-parser

parses ๐Ÿ‡จ๐Ÿ‡ญ address strings into structured data


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 is a library that parses ๐Ÿ‡จ๐Ÿ‡ญ address strings into structured data. It acknowledges the fact that user input varies and tries to parse as much as possible.

๐Ÿ Getting Started

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

Installing

Install the package via npm:

npm install swiss-address-parser --save

or via yarn:

yarn add swiss-address-parser

๐ŸŽˆ Usage

Basic usage

import parse from 'swiss-address-parser';

const address = parse('Musterstrasse 1, 8000 Zรผrich');

console.log(address);

// {
//   street: 'Musterstrasse',
//   streetNumber: '1',
//   zipCode: '8000',
//   city: 'Zรผrich',
//   canton: 'ZH',
//   country: 'CH'
// }

๐Ÿ“œ License

In the vast realm of code, where ideas intertwine and innovation knows no bounds, I find myself continually amazed by the unwavering spirit of collaboration that defines the open source community. It's a world where developers, like you and me, share their creations, their insights, and their expertise with an unparalleled generosity. Countless times, whether through serendipitous discovery or through meticulous research, I've stumbled upon remarkable projects that have enriched my own journey as a developer.

Recognizing the profound impact that the open source community has had on my own growth, I've made a personal commitment to give back to this tapestry of ingenuity. The code is licensed under the Apache license, which means that you're free to use, remix, and build upon it. It's my way of extending the thread of collaboration that binds us as developers.

๐Ÿ”ง Running the tests

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

npm run test

โ›๏ธ Built Using

โœ๏ธ Authors

About

parses ๐Ÿ‡จ๐Ÿ‡ญ address strings into structured data

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors