{"analyzedAt":"2022-06-24T23:59:21.186Z","collected":{"metadata":{"name":"zipcode-tw-react","scope":"unscoped","version":"1.2.0","description":"提供台灣縣市、行政區下拉選單以及郵遞區號輸入欄位組合的React Component  \r 藉由RawData快速進行郵遞區號切換，並提供地址合併顯示。","keywords":["react","zipcode","taiwan","tw","郵遞區號","台灣"],"date":"2019-01-03T13:14:00.465Z","author":{"name":"Chris.Tsai"},"publisher":{"username":"chrissoft","email":"blackcochris@gmail.com"},"maintainers":[{"username":"chrissoft","email":"blackcochris@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/Chris-Tsai/zipcode-tw-react.git"},"links":{"npm":"https://www.npmjs.com/package/zipcode-tw-react","homepage":"https://github.com/Chris-Tsai/zipcode-tw-react#readme","repository":"https://github.com/Chris-Tsai/zipcode-tw-react","bugs":"https://github.com/Chris-Tsai/zipcode-tw-react/issues"},"license":"MIT","dependencies":{"prop-types":"^15.5.8","react":"^16.6.0","react-dom":"^16.6.0"},"devDependencies":{"@babel/cli":"^7.0.0-beta.36","babel-loader":"^8.0.2","@babel/core":"^7.0.0-rc.1","@babel/plugin-proposal-class-properties":"^7.0.0-rc.1","@babel/plugin-proposal-json-strings":"^7.0.0-rc.1","@babel/plugin-proposal-object-rest-spread":"^7.0.0-rc.1","@babel/plugin-syntax-dynamic-import":"^7.0.0-rc.1","@babel/plugin-syntax-import-meta":"^7.0.0-rc.1","@babel/polyfill":"^7.0.0-rc.1","@babel/preset-env":"^7.0.0-rc.1","@babel/preset-flow":"^7.0.0-rc.1","@babel/preset-react":"^7.0.0-rc.1","babel-core":"^7.0.0-bridge.0","fs-extra":"^5.0.0","webpack":"^3.10.0","webpack-body-parser":"^1.11.110","webpack-dev-server":"^2.10.0","webpack-encoding-plugin":"^0.2.0","eslint":"^5.8.0","eslint-plugin-react":"^7.11.1","babel-eslint":"^10.0.1","jest":"^23.6.0","babel-jest":"^23.6.0","react-test-renderer":"^16.6.0","css-loader":"^0.28.11","style-loader":"^0.19.1","check-node-version":"^3.2.0","enzyme":"^3.7.0","enzyme-adapter-react-16":"^1.6.0","redux-mock-store":"^1.5.3","redux":"^3.6.0","coveralls":"^3.0.2"},"releases":[{"from":"2022-05-25T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":1},{"from":"2022-03-26T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":1},{"from":"2021-12-26T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":1},{"from":"2021-06-24T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":1},{"from":"2020-06-24T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":1}],"hasTestScript":true,"readme":"# zipcode-tw-react\r\n提供台灣縣市、行政區下拉選單以及郵遞區號輸入欄位組合的React Component  \r\n藉由RawData快速進行郵遞區號切換，並提供地址合併顯示。\r\n\r\n[![travis-ci Status](https://travis-ci.org/Chris-Tsai/zipcode-tw-react.svg?branch=master)](https://travis-ci.org/Chris-Tsai/zipcode-tw-react.svg?branch=master)\r\n[![Coverage Status](https://coveralls.io/repos/github/Chris-Tsai/zipcode-tw-react/badge.svg?branch=master&service=github)](https://coveralls.io/github/Chris-Tsai/zipcode-tw-react?branch=master)\r\n[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/Chris-Tsai/zipcode-tw-react/blob/master/LICENSE)\r\n\r\n\r\n## Feature\r\n - 挑選台灣縣市、行政區下拉選單，快速帶出郵遞區號。\r\n - 提供可自定義台灣縣市下拉選單排序(countySort)。\r\n - 輸入郵遞區號，快速帶出台灣縣市、行政區。\r\n - 提供完整地址(fullAddress)或路段地址(address)欄位傳入，合併顯示郵遞區號及地址。\r\n - 可自定義下拉選單、輸入欄位、地址顯示欄位的CSS, Style，達到畫面的一致性。\r\n\r\n\r\n## Demo\r\nTry it online: https://chris-tsai.github.io/\r\n\r\n![pic](demo.png)\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install zipcode-tw-react --save\r\n```\r\nor use package.json\r\n\r\n```bash\r\n\"dependencies\": {\r\n      ...\r\n    + \"zipcode-tw-react\": \"^1.2.0\",\r\n },\r\n```\r\n\r\n## Usage\r\n\r\n```javascript\r\nimport {ZipCodeTW} from \"zipcode-tw-react\";\r\n\r\n<ZipCodeTW displayType=\"text\"\r\n          ...\r\n/>\r\n```\r\nExample : [zipcode-tw-react-example](https://github.com/Chris-Tsai/zipcode-tw-react/tree/master/_example) \r\n\r\n## Props\r\n\r\n###### Field\r\n\r\n Name | Type | Default | Description\r\n:--- | :--- | :--- | :---\r\ndisplayType| one of: 'text', 'display' | 'text' | displayType= display<br/>1. 以span顯示且包含readOnly & disabled屬性<br/>2. 提供fullAddress、address參數合併顯示郵遞區號及地址\r\ncountySort| object | {\"基隆市\": 1, \"台北市\":2, \"新北市\":3, <br/>\"桃園市\":4, \"新竹市\":5, \"新竹縣\":6,<br/> \"苗栗縣\":7, \"台中市\":8, \"彰化縣\":9,<br/> \"南投縣\":10,\"雲林縣\":11, \"嘉義市\":12,<br/> \"嘉義縣\":13, \"台南市\":14, \"高雄市\":15,<br/> \"屏東縣\":16, \"台東縣\":17, \"花蓮縣\":18,<br/> \"宜蘭縣\":19, \"澎湖縣\":20,\"金門縣\":21,<br/> \"連江縣\":22}|\r\nzipCodePositionLast| bool | true| Decide zipCode input text position, <br/>when displayType= display, position is fixed \r\ncountyFieldName | string |'county' |\r\ncountyValue | string | |\r\ndistrictFieldName | string |'district' |\r\ndistrictValue | string | |\r\nzipCodeFieldName | string |'zipCode' |\r\nzipCodeValue | string | |\r\ncountyClass | string |'form-control' |\r\ncountyStyle | object | {} |\r\ndistrictClass | string |'form-control' |\r\ndistrictStyle | object | displayType= 'text'<br/>預設為 {marginLeft:'5px', minWidth:'107px', paddingRight:'0px'} |\r\nzipClass | string | 'form-control'|\r\nzipStyle | object | displayType= 'text'<br/>預設為 {marginLeft:'5px', width: '50px'}|\r\nzipCodePlaceholder | string | |\r\nfullAddress | string | | 完整地址(優化顯示)\r\naddress | string | | 路段地址資訊(優化顯示)\r\naddressClass | string | 'form-control'|\r\naddressStyle | object | {} |\r\n\r\n###### Method\r\n\r\n Name | Return | Description\r\n :---  | :--- | :--- \r\n handleChangeCounty | { countyFieldName, countyValue, <br/>districtFieldName, districtValue, <br/>zipFieldName, zipValue }\r\n handleChangeDistrict | { countyFieldName, countyValue, <br/>districtFieldName, districtValue, <br/>zipFieldName, zipValue }\r\n handleChangeZipCode | { zipFieldName, zipValue }\r\n handleBlurZipCode | { countyFieldName, countyValue, <br/>districtFieldName, districtValue, <br/>zipFieldName, zipValue }\r\n handleZipCodeNotExists | { countyFieldName, countyValue, <br/>districtFieldName, districtValue, <br/>zipFieldName, zipValue, origZipCode }\r\n\r\n<!--\r\n## Stargazers over time\r\n[![Stargazers over time](https://starcharts.herokuapp.com/Chris-Tsai/zipcode-tw-react.svg)](https://starcharts.herokuapp.com/Chris-Tsai/zipcode-tw-react)\r\n-->"},"npm":{"downloads":[{"from":"2022-06-23T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":5},{"from":"2022-06-17T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":27},{"from":"2022-05-25T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":76},{"from":"2022-03-26T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":276},{"from":"2021-12-26T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":796},{"from":"2021-06-24T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":2025}],"starsCount":0},"github":{"starsCount":63,"forksCount":3,"subscribersCount":2,"issues":{"count":7,"openCount":1,"distribution":{"3600":1,"10800":2,"32400":0,"97200":0,"291600":2,"874800":1,"2624400":0,"7873200":0,"23619600":0,"70858800":1,"212576400":0},"isDisabled":false},"contributors":[{"username":"Chris-Tsai","commitsCount":65},{"username":"shihyuho","commitsCount":1}],"commits":[{"from":"2022-06-17T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":0},{"from":"2022-05-25T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":0},{"from":"2022-03-26T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":0},{"from":"2021-12-26T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":0},{"from":"2021-06-24T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":0}],"statuses":[{"context":"coverage/coveralls","state":"success"},{"context":"continuous-integration/travis-ci/push","state":"success"}]},"source":{"files":{"readmeSize":3974,"testsSize":22239},"badges":[{"urls":{"original":"https://travis-ci.org/Chris-Tsai/zipcode-tw-react.svg?branch=master","service":"https://api.travis-ci.org/Chris-Tsai/zipcode-tw-react.svg?branch=master","shields":"https://img.shields.io/travis/Chris-Tsai/zipcode-tw-react/master.svg","content":"https://img.shields.io/travis/Chris-Tsai/zipcode-tw-react/master.json"},"info":{"service":"travis","type":"build","modifiers":{"branch":"master"}}},{"urls":{"original":"https://coveralls.io/repos/github/Chris-Tsai/zipcode-tw-react/badge.svg?branch=master&service=github","service":"https://coveralls.io/repos/github/Chris-Tsai/zipcode-tw-react/badge.svg?branch=master","shields":"https://img.shields.io/coveralls/Chris-Tsai/zipcode-tw-react/master.svg","content":"https://img.shields.io/coveralls/Chris-Tsai/zipcode-tw-react/master.json"},"info":{"service":"coveralls","type":"coverage","modifiers":{"branch":"master"}}}],"linters":["eslint"],"coverage":0.98,"outdatedDependencies":{"react":{"required":"^16.6.0","stable":"18.2.0","latest":"18.3.0-next-955cad9bc-20220623"},"react-dom":{"required":"^16.6.0","stable":"18.2.0","latest":"18.3.0-next-955cad9bc-20220623"}}}},"evaluation":{"quality":{"carefulness":0.84,"tests":0.997,"health":0.5,"branding":0.3},"popularity":{"communityInterest":70,"downloadsCount":92,"downloadsAcceleration":-1.0350837138508373,"dependentsCount":0},"maintenance":{"releasesFrequency":0.9,"commitsFrequency":0.9,"openIssues":1,"issuesDistribution":0.9}},"score":{"final":0.6530213541285286,"detail":{"quality":0.9156135371953752,"popularity":0.08105731089224498,"maintenance":0.9999063833075152}}}