{"_id":"@brimbelle/license-plate","_rev":"3-2557a538fd3efb2ffafd09809add67d9","name":"@brimbelle/license-plate","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@brimbelle/license-plate","version":"1.0.0","description":"Simple package to validate or format license plate","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"ttsc","dev":"ttsc -w","test":"clear && jest"},"repository":{"type":"git","url":"git+https://github.com/brimbelle/world-license-plate.git"},"keywords":["license plate","plate number","registration plate","vehicle","vehicles","plate","license","registration","numbers","car","truck","motorcycle"],"author":{"name":"brimbelle","email":"brimbelle.contact@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/brimbelle/world-license-plate/issues"},"homepage":"https://github.com/brimbelle/world-license-plate#readme","devDependencies":{"@types/jest":"^27.0.2","jest":"^27.2.2","ts-jest":"^27.0.5","tslint":"^6.1.3","tslint-config-airbnb":"^5.11.2","ttypescript":"^1.5.12","typescript":"^4.4.2"},"gitHead":"ee552ebe6347e1c8285ec7de9beaa8c411be2ba7","_id":"@brimbelle/license-plate@1.0.0","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-x2cPejOBh6mg9vatN6xNa4OMk4FJWs83k7UcTY7jhK7Ii5SNC2FjywWuPJGzg1WAsaB2nzBzu5+MTqifY3GMzQ==","shasum":"9bb185143c327655c52d2d73fdfb631294f89331","tarball":"https://registry.npmjs.org/@brimbelle/license-plate/-/license-plate-1.0.0.tgz","fileCount":31,"unpackedSize":19652,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFx9LziCfLKkwRMNT5YxVsaaclt37yFX6MkL/atdo/YoAiEAqNWZHuhnbndfPD6BRmSnKyrZsCQ8S0jIXfrTtcYqFGw="}]},"_npmUser":{"name":"bubliotutyka","email":"benjamin.renel@wanadoo.fr"},"directories":{},"maintainers":[{"name":"bubliotutyka","email":"benjamin.renel@wanadoo.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/license-plate_1.0.0_1632616272215_0.9396990850657332"},"_hasShrinkwrap":false},"2.0.0":{"name":"@brimbelle/license-plate","version":"2.0.0","description":"Simple package to validate or format license plate","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"ttsc","dev":"ttsc -w","test":"clear && jest"},"repository":{"type":"git","url":"git+https://github.com/brimbelle/license-plate.git"},"keywords":["license plate","plate number","registration plate","vehicle","vehicles","plate","license","registration","numbers","car","truck","motorcycle"],"author":{"name":"brimbelle","email":"brimbelle.contact@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/brimbelle/license-plate/issues"},"homepage":"https://github.com/brimbelle/license-plate#readme","devDependencies":{"@types/jest":"^27.0.2","jest":"^27.2.2","ts-jest":"^27.0.5","tslint":"^6.1.3","tslint-config-airbnb":"^5.11.2","ttypescript":"^1.5.12","typescript":"^4.4.2"},"gitHead":"359e8cfa565f4808fc92e3a46d7eed9cd527b893","_id":"@brimbelle/license-plate@2.0.0","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-F4MeYREUi0B4TVfDts+ixVlXjzkvfJeAKXfbwBksLn2PEK85L0kvxPyaDP7vPYBarUydekVoZWTgqZyuCwUeLg==","shasum":"dbbd53dbdc29920888bd6073354769434c3a8b62","tarball":"https://registry.npmjs.org/@brimbelle/license-plate/-/license-plate-2.0.0.tgz","fileCount":49,"unpackedSize":28659,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2B2eCRA9TVsSAnZWagAAdEIP/3FNEGMEuXWLaVhIHWMC\nQ3/LCRa/4txCiwaMMay48+AVa2XoFxDUHpbvOJkt9U1L5CMqTiDicSV5NnbP\ntzvr3nF9haok1E/89P9gwmmAzwV74v71Y5XoBqLDYuY/Kr5lSalrfbCHrS41\nMALwj6kLAUSR7mBkP91eDMydLCK7i3eiMLK8uttfkopifBbGpKQ31Amy3Jnw\ncdX4xTg4NlJB5OMia94W1qW1JwtXcH3JhqA8rhDPtp9291YH0u3dV8rWF8QC\n1zF4P7NZHogtOD4/4fbRZIsg7tPlTRkc4CySa9MnMDjOJRDlkOIpjCOovbM1\nxLTFQlUQFrXaqVAS8lhquxnsvxpRR8CtQ/TB5+qlT3hQGHjsbOuyg7To2F1y\nyHEQWahbh5Epr3E3sLSjmQAQoNcGlEzutQKkvymKEFQ9bbAR71jqH8iA8pJP\njAzFRHB0ZPWsJFLkWP8bZRBKk9XWO+iVmsOQynBNOsXeZpJkHuMrEXTL6Cmy\ndo4kYpMfF7xaB9GQoYyu80hdHVl/fR/iAMVa6yDA+va1hNWs9OUhDatoTxuv\nuJ4e6ThCd1/ONIf+X7la3xGwf2fchwJB41ne+tFfk0cStkzSJVXW0jGHFG7r\ndB/eg5GBQqd5emVxqU+T8BCi+TZ1nGBf661mr5iD+EUXyXYT1SkIe4cW4VZC\nmEJ1\r\n=FFvG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID7QGVWRbhxNtOdDYG/oZ/AGG6geyNsfvRhWX3hu2vioAiBvCFEbrfDqM80Gw9azbTzSpaglfJ0GKcCxGgSg7Qr6Rg=="}]},"_npmUser":{"name":"bubliotutyka","email":"benjamin.renel@wanadoo.fr"},"directories":{},"maintainers":[{"name":"bubliotutyka","email":"benjamin.renel@wanadoo.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/license-plate_2.0.0_1632781630629_0.789424265330926"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-26T00:31:12.164Z","1.0.0":"2021-09-26T00:31:12.343Z","modified":"2022-04-04T20:41:38.858Z","2.0.0":"2021-09-27T22:27:10.856Z"},"maintainers":[{"name":"bubliotutyka","email":"benjamin.renel@wanadoo.fr"}],"description":"Simple package to validate or format license plate","homepage":"https://github.com/brimbelle/license-plate#readme","keywords":["license plate","plate number","registration plate","vehicle","vehicles","plate","license","registration","numbers","car","truck","motorcycle"],"repository":{"type":"git","url":"git+https://github.com/brimbelle/license-plate.git"},"author":{"name":"brimbelle","email":"brimbelle.contact@gmail.com"},"bugs":{"url":"https://github.com/brimbelle/license-plate/issues"},"license":"MIT","readme":"# license-plate\n\n![size logo](https://img.shields.io/github/languages/code-size/brimbelle/world-license-plate?style=flat-square)\n![last logo](https://img.shields.io/github/last-commit/brimbelle/world-license-plate?style=flat-square)\n![license logo](https://img.shields.io/github/license/brimbelle/world-license-plate?style=flat-square)\n![version logo](https://img.shields.io/github/package-json/v/brimbelle/world-license-plate?style=flat-square)\n\nSimple package to validate or format world license plate\n\n## Installation\n\n```bash\nyarn add @brimbelle/license-plate\n# or npm install @brimbelle/license-plate\n```\n\n## Docs\n\nIt's just the beginning of this lib, new locales are coming in next weeks.\n\nIf you need a locale not present, post an [issue](https://github.com/brimbelle/license-plate/issues) to ask me or create a pull request with this locale added.\n\nAt moment you can use FR, BE, and CH locales to validate and format your licenses plates.\n\nFind example [HERE](https://github.com/brimbelle/license-plate/blob/develop/example/example.js)\n\n```bash\nimport LicensePlate from '@brimbelle/license-plate';\n```\n\nLocaleCode\n```bash\ntype LocaleCode: 'FR' | 'BE' | 'CH';\n```\n\nSet locale\n```bash\nLicensePlate.setLocale(locale: LocaleCode); // Default is FR locale\n\nLicensePlate.setLocale('FR');\n```\n\nCreate license plate\n```bash\nnew LicensePlate(licensePlate: string, isCustom?: boolean);\n\nconst licensePlate = new LicensePlate('AB123CD');\n```\n\nIs valid license plate\n```bash\nlicensePlate.isValid(): boolean;\n```\n\nGet formated license plate\n```bash\nlicensePlate.format(): string;\n```\n\n## License\n[MIT License](https://choosealicense.com/licenses/mit/)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","readmeFilename":"README.md"}