frankely / vin-decoder Goto Github PK
View Code? Open in Web Editor NEWVIN Decoder
License: MIT License
VIN Decoder
License: MIT License
When splitting a VIN we are returning only the codes without descriptions or details so they are better to present or understand for
Let's add another layer of information for those codes where we also expose the description.
Is this validator restricted to VINs from specific countries?
Some test cases breaks for me. The validate function returns false but the VIN seems to be correct.
you can create random VINs here:
https://vingenerator.org/
https://randomvin.com/
https://www.vindecoderz.com/
delivers results for the failing VINs
here are some VIN examples:
WBANF73576CG65408
1D7HA16D94J171206
1G1RC6E41BU103560
This is not an issue, just a question,
How do I obtain the model of a car using this module (and perhaps a suggested supplementary lookup table) ?
When I try to test the npmjs module I get this error:
Error: ENOENT, no such file or directory 'data/countries.json'
https://tonicdev.com/5693d7df33b2840c007fd5c8/5693d7df33b2840c007fd5c9
It seems that you need to improve the validity function. Just checking the length isn’t enough. Here are other criteria:
• Cannot have any of I, O, or Q in the VIN
• last five digits have to be numbers
• Check digit needs to be correct
I have a 150-line function that checks for all of this, remind me soon to make a PR.
Includes:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.