Comments (2)
I agree that there is some inconsistency here, but the error indicates that the input format is possibly wrong, the other indicates that there isn't a match (another way for the input being wrong I suppose).
Happy to change this behaviour with an update to the major version number to represent a change in the API
from country-code-lookup.
At minimum I think that the behavior should be documented. Especially if you stick to throwing an Error.
from country-code-lookup.
Related Issues (20)
- Zambia country code is wrong HOT 1
- Country details using country currency code. HOT 7
- can't lookup ByCountry for HOT 3
- Search by "United States of America" fails HOT 3
- Add TS type information
- state is null when address ends with "-1234" HOT 2
- FIPS code for Kosovo is wrong
- search TS definition HOT 1
- Should lower or upper case HOT 1
- How can I query for England, Wales, Scotland, & Northern Ireland country iso codes? HOT 3
- ISO number should be a numeric-3 HOT 2
- Handle country codes with "-" HOT 1
- isoNo returns non-standardized format HOT 1
- feat(Search): More flexible name search byCountry() HOT 4
- XKS returns null HOT 2
- Czech Republic ⇾ Czechia HOT 1
- Proposal: To support IBAN country names
- Publish version 0.1.1 HOT 1
- Release process has undetected errors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from country-code-lookup.