npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@companydata-dk/dawa-autocomplete

v2.0.0

Published

DAWA-autocomplete til dawa.companydata.dk: dawa-autocomplete2 med companydata.dk som standard base-URL og en apiKey-indstilling

Readme

@companydata-dk/dawa-autocomplete

Adresse-autocomplete til danske adresser, en udgave af dawa-autocomplete2 (MIT, Styrelsen for Dataforsyning og Infrastruktur), der som standard taler med dawa.companydata.dk i stedet for DAWA, som lukker 1. oktober 2026.

Samme komponent, samme indstillinger, samme select-callback med samme data. To ting er nye:

  • baseUrl er https://dawa.companydata.dk som standard.
  • apiKey (valgfri) lægger din companydata-nøgle i stien, så loftet hæves fra det nøgleløse niveau. Widgets i browseren kan ikke sende headers, derfor stien.

Brug

Som script:

<link rel="stylesheet" href="https://cdn.companydata.dk/dawa-autocomplete/2.0.0/dawa-autocomplete2.css">
<input id="adresse" type="text" autocomplete="off">
<script src="https://cdn.companydata.dk/dawa-autocomplete/2.0.0/dawa-autocomplete2.min.js"></script>
<script>
  dawaAutocomplete.dawaAutocomplete(document.getElementById('adresse'), {
    apiKey: 'sk_din_noegle',   // valgfri
    select: valgt => console.log(valgt.data.id, valgt.tekst)
  });
</script>

Som pakke:

npm install @companydata-dk/dawa-autocomplete
import { dawaAutocomplete } from '@companydata-dk/dawa-autocomplete';

dawaAutocomplete(document.getElementById('adresse'), {
  select: valgt => console.log(valgt.data.id, valgt.tekst),
});

Flytter du fra dawa-autocomplete2?

Behold din nuværende kode og sæt baseUrl: 'https://dawa.companydata.dk'. Eller skift pakken ud med denne, så er base-URL'en sat.

Indstillinger

Alle indstillinger fra dawa-autocomplete2 gælder uændret: baseUrl, minLength, params, fuzzy, stormodtagerpostnumre, supplerendebynavn, type, adgangsadresserOnly, debounce, select, multiline, id. Hertil apiKey.

Nøgleløs brug er begrænset pr. IP-adresse. En gratis nøgle fås på companydata.dk/api; adressekald tæller ikke på nøglens API-kvote.

Kildekode og fejl

Koden ligger på github.com/companydata-dk/dawa-autocomplete. Fejl og ønsker som issues samme sted.

Byg

npm install
npm run build

Bygget lander i dist/js (UMD og ES, med og uden polyfills) og dist/css.

Licens

MIT. Ophavsret 2017 Danmarks adresser for den oprindelige komponent, se LICENSE. Ændringerne er ophavsret 2026 Uneven Bits ApS under samme licens.