@kevinfrom/danish-zipcodes-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Danish Zipcodes API

A simple Axios wrapper for quickly looking up cities and municipalities in Denmark by searching via name or ZIP code.

Installation

npm install @kevinfrom/danish-zipcodes-api

Remember axios!

npm install axios

Usage

import { createZipCodesApi } from '@kevinfrom/danish-zipcodes-api'

const api = createZipCodesApi()


// Search by ZIP (ZIP must be exactly 4 digits long)
api.searchByZip(6950).then(data => console.log(data))

// Search by name
api.searchByName('Ringkøbing').then(data => console.log(data))

Readme

Keywords

none

Package Sidebar

Install

npm i @kevinfrom/danish-zipcodes-api

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

4.75 kB

Total Files

7

Last publish

Collaborators

  • kevinfrom