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 🙏

© 2024 – Pkg Stats / Ryan Hefner

svelte-daum-postcode

v0.0.1

Published

svelte daum-postcode

Downloads

26

Readme

svelte-daum-postcode

svelte로 만든 Daum 우편번호 서비스 입니다.

Api 가이드

공지

버그가 있거나 추가 하실 사항이 있으면 편하게 PR요청 부탁드립니다.

설치

  npm install -save svelte-daum-postcode

사용

  <script>
    import DaumPostcode from 'svelte-daum-postcode';

    const handleComplete = ({ detail: { data }}) => {
      let fullAddress = data.address;
      let jibunAddress = data.jibunAddress;

      console.log(fullAddress); // 서울 구로구 개봉로20길
      console.log(jibunAddress); // 서울 구로구 개봉동
    }
  </script>

  <DaumPostcode on:complete={handleComplete} />

Events & value

  • on:complete - 우편번호 검색 후 선택한 주소를 받아올 콜백함수입니다.
  • on:search - 주소를 검색할 경우 실행되는 콜백함수입니다.
  • on:error - 스크립트 불러오기 실패할 경우 실행되는 콜백함수입니다.
  • width - width 값입니다.
  • height - height 값입니다.
  • autoClose - 우편번호 검색이 끝났을 때 컴포넌트를 자동으로 닫습니다. 기본값: false
  • autoResize - 우편번호를 검색할 때 검색 결과에 따라 컴포넌트의 세로 길이를 자동으로 조절합니다. 기본값: false
  • animation - 우편번호를 검색할 때 애니메이션 효과를 줍니다. 기본값: false
  • defaultQuery - 우편번호 검색창에 미리 표시할 검색어입니다. 기본값: null
  • theme - Daum 우편번호 검색 모듈에 적용할 테마입니다. 기본값: null
  • style - 우편번호 검색창을 감싸는 최상위 컴포넌트에 적용할 스타일입니다. 기본값: null ex) style="border: 1px solid #ffffff"
  • scriptUrl - 컴포넌트에서 사용할 Daum 우편번호 스크립트 주소입니다. 기본값: 'https://t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js'
  • errorMessage - Daum 우편번호 스크립트가 로드되지 않을 때 나타낼 에러 메시지입니다. 기본값: <p>현재 Daum 우편번호 서비스를 이용할 수 없습니다. 잠시 후 다시 시도해주세요.</p>
  • Daum 우편번호 생성자 속성들을 동일한 이름의 props로 전달할 수 있습니다.

Daum 우편번호 서비스 가이드를 참고해주세요.

License

MIT