{"_id":"@aduh95/format-phone-number","_rev":"3-4d25523597532327c2f8c67aef4a6fc4","name":"@aduh95/format-phone-number","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@aduh95/format-phone-number","keywords":["libphonenumber","format","phone","phone number"],"exports":{".":"./index.js","./getCountryData":{"node":"./fetchData.node.js","deno":"./fetchData.deno.js","default":"./fetchData.js"}},"type":"module","types":"./index.d.ts","bin":{"format-phone-number":"bin/format-phone-number"},"scripts":{"build":"./scripts/downloadAndParseMetadata.mjs 'https://github.com/google/libphonenumber/raw/master/resources/PhoneNumberMetadata.xml' ./data/ > countryCodes.js","test":"yarn test:browser && yarn test:node && yarn test:deno","test:browser":"./test/browser.js","test:node":"./test/node.js","test:deno":"deno test --importmap='./importmap.json' --allow-read='./data/' test/deno.ts"},"devDependencies":{"puppeteer":"^8.0.0"},"version":"1.0.0","description":"Simple JavaScript library that takes a phone number in the E164 format and returns it in an international format. It's using Google's [libphonenumber](https://github.com/google/libphonenumber) as a source of truth for how to format a phone number.","licenseText":"@aduh95/format-phone-number is licensed as follow:\n\n\"\"\"\nCopyright (c) 2021 Antoine du HAMEL\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\"\"\"\n\nThis license applies to all the files in the repository.\n\nThis package uses metadata from https://github.com/google/libphonenumber/raw/master/resources/PhoneNumberMetadata.xml which is licensed by https://github.com/google/libphonenumber/blob/master/LICENSE.\n\n","license":"SEE LICENSE IN LICENSE","_id":"@aduh95/format-phone-number@1.0.0","dist":{"shasum":"0568c8832656a101704726099cf109e3cf46c82e","integrity":"sha512-FDjMC28H66uhRLZrG38Bb9D8BfMNux1AV55AZ6mdPCVk0D5SLJ4ofZtb1xjgx4J2tOjIv93uZE0w4zgX7xoaSw==","tarball":"https://registry.npmjs.org/@aduh95/format-phone-number/-/format-phone-number-1.0.0.tgz","fileCount":20,"unpackedSize":13306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVogiCRA9TVsSAnZWagAA5vQP/2przEOT4jR11S9oFX4a\njI6XdX6PRCLHpJcsgM61wpHZtAYzW0MhXaVAeXZobXjLgILaEYfnEy91WOeS\nrXrh9zPZ19cjrKrVXJ6Utxg5xdXcMNF2cboRsKaFsynieZI2Z9c48A9hLbqs\nWD4JJcv+VKcYkp9BPQRVfR3NkSgFw64aE8e2PJdaYDm93Qx8IbB5awDF8h06\nZyqWhCMvUXSWQ6ChEvmNf7yc4E6msSSQhaet4WeBinOYTb+1N8FH7OKpbFi2\ntq+Uv6ZG8R4VfS8w7Tay5RgH7fFcEThPq487owi62eeZH94wU7Zmh4UbJWob\n3fG1eix++PkhQb3GO1hJo3/hAVT4DZOm//cR+IV4gzGng7hD/vhVAGgbLozF\n4w6qy0J5+pcykCKu2f6oSAChcSUa1GrXlg7bTalj/y6sjJd9ZUBnA5sygUvG\n9EmblfZ/A+/tQRpV6tJXOr3qwxxnOP3kUTGciQntkPirx/+Itwd49gcscVyT\nO/Dxw6FCe5+yRjydoQzTb4JBeffdkiUbGTruMKUjFs5NlZlj/mD0MCbz2O4V\nbnz2dDmH0YBE4+OdNdkpCWTD+7D7ucHEcjpRWHkhCRGTnbQdeyTzEtbuxcSq\n8sX2mQ7tIDwUzQuCAbh1ungohsJ6YVQtzHWvN8BSKEpEMOFlkaGTZy81eqkj\nE+ti\r\n=/HTc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRHOSSxFbsRPHd5KRQW9wTGyY6Xk6tu4dr8lhBULcKfAIge2v1R1NeswwK4SOrO/hWRESrO7NIDa2T1jpiFdMDTUU="}]},"_npmUser":{"name":"aduh95","email":"duhamelantoine1995@gmail.com"},"directories":{},"maintainers":[{"name":"aduh95","email":"duhamelantoine1995@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/format-phone-number_1.0.0_1616283681929_0.08585599695210688"},"_hasShrinkwrap":false},"1.0.1":{"name":"@aduh95/format-phone-number","keywords":["libphonenumber","format","phone","phone number"],"exports":{".":"./index.js","./getCountryData":{"node":"./fetchData.node.js","deno":"./fetchData.deno.js","default":"./fetchData.js"}},"type":"module","types":"./index.d.ts","bin":{"format-phone-number":"bin/format-phone-number"},"scripts":{"build":"./scripts/downloadAndParseMetadata.mjs 'https://github.com/google/libphonenumber/raw/master/resources/PhoneNumberMetadata.xml' ./data/ > countryCodes.js","test":"yarn test:browser && yarn test:node && yarn test:deno","test:browser":"./test/browser.js","test:node":"./test/node.js","test:deno":"deno test --importmap='./importmap.json' --allow-read='./data/' test/deno.ts"},"devDependencies":{"puppeteer":"^8.0.0"},"version":"1.0.1","description":"Simple JavaScript library that takes a phone number in the E164 format and returns it in an international format. It's using Google's [libphonenumber](https://github.com/google/libphonenumber) as a source of truth for how to format a phone number.","licenseText":"@aduh95/format-phone-number is licensed as follow:\n\n\"\"\"\nCopyright (c) 2021 Antoine du HAMEL\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\"\"\"\n\nThis license applies to all the files in the repository.\n\nThis package uses metadata from https://github.com/google/libphonenumber/raw/master/resources/PhoneNumberMetadata.xml which is licensed by https://github.com/google/libphonenumber/blob/master/LICENSE.\n\n","license":"SEE LICENSE IN LICENSE","_id":"@aduh95/format-phone-number@1.0.1","dist":{"shasum":"f07d4866f9bdef618870f6200d08a164758ddb31","integrity":"sha512-nIGK8Xxipi7LczB/9UQzCZQcOo/MGVKa5iBPu+QxyPKEtShaweT6xtpNnRBcAXsVu8decgEvISxWClFDuAzLfg==","tarball":"https://registry.npmjs.org/@aduh95/format-phone-number/-/format-phone-number-1.0.1.tgz","fileCount":224,"unpackedSize":62658,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgsPjCCRA9TVsSAnZWagAAUU4P/1cdRxuB5xK1wgRt3R4T\n13yVhDgNckiirlDJdTDbeEO/EvFmwuXq+JdxW8sYAweHXSNG/eUsrS46soXf\nsDdx4s0A3l/xBIs7AXZr3v8SYx2CQpRJjUafpJZSqS2JKdlRwGBxbC3QuKLi\nSVStMpsHxZmJU+sBN53v4DSO5KFsSQ+z3eb7czpT30psF7xhrsBYraXkDnNG\nmqUZ+Mrk36bhpfPTdJ1+niwgrI1iKJMQ9XyZ3Ri8F8HJA1u4NXOxUhWDLEVZ\naYgR7wjPYRMCIHMsQtGeesh5p4VOyYU4hRJg7Mq/TUvSG/HxzKZ4fwUwWYnv\nLPKC4/OykxRXdG0htvvqC33lJmMxX7cF7o4RRoGh7oW4RpoDn1FsGE7sjOYo\nxLyH24whjTrsTN2wMJq48hhu5IRlvwSn1H8EAmliel2h+rrv+jpHwkGCJwSw\ndQPQn2ICXMhAPu9JdPNueYbh5DrvI9LQRFOZ7Nxd3XS48GZvQfanXkzXC+dT\njmtfW3wt0gntLl3E3IIBwi36rMGI8032RC3zyOTfP/zYsAH6A3eWljXpQXR/\nQBRnijN4t5CJGVTDXSCQpg1tQBU1m77G67JrmFbr6fpgw22mzGIVpy4rZH2/\n+Ezq8yMrbUtcDF4XCCT/AZ7yOXJef0cHxlz7jqIxPLRyXF/IY6vDQ5CrH00J\nZi1w\r\n=XhMR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF2w3dfXwRnCzf6q4C92zy6T9kyNsYoPbqsbJ0QnrcZOAiEAg3ulQtbaR5juh3ejeCQhXuFDo3oI7mdYYxbebAeExG4="}]},"_npmUser":{"name":"aduh95","email":"duhamelantoine1995@gmail.com"},"directories":{},"maintainers":[{"name":"aduh95","email":"duhamelantoine1995@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/format-phone-number_1.0.1_1622210753516_0.235025932560732"},"_hasShrinkwrap":false},"1.0.2":{"name":"@aduh95/format-phone-number","keywords":["libphonenumber","format","phone","phone number"],"exports":{".":"./index.js","./getCountryData":{"node":"./fetchData.node.js","deno":"./fetchData.deno.js","default":"./fetchData.js"}},"type":"module","types":"./index.d.ts","bin":{"format-phone-number":"bin/format-phone-number"},"scripts":{"build":"./scripts/downloadAndParseMetadata.mjs 'https://github.com/google/libphonenumber/raw/master/resources/PhoneNumberMetadata.xml' ./data/ > countryCodes.js","test":"yarn test:browser && yarn test:node && yarn test:deno","test:browser":"./test/browser.js","test:node":"./test/node.js","test:deno":"deno test --importmap='./importmap.json' --allow-read='./data/' test/deno.ts"},"devDependencies":{"puppeteer":"^8.0.0"},"version":"1.0.2","description":"Simple JavaScript library that takes a phone number in the E164 format and returns it in an international format. It's using Google's [libphonenumber](https://github.com/google/libphonenumber) as a source of truth for how to format a phone number.","licenseText":"@aduh95/format-phone-number is licensed as follow:\n\n\"\"\"\nCopyright (c) 2021 Antoine du HAMEL\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\"\"\"\n\nThis license applies to all the files in the repository.\n\nThis package uses metadata from https://github.com/google/libphonenumber/raw/master/resources/PhoneNumberMetadata.xml which is licensed by https://github.com/google/libphonenumber/blob/master/LICENSE.\n\n","license":"SEE LICENSE IN LICENSE","_id":"@aduh95/format-phone-number@1.0.2","dist":{"shasum":"02d4e2235e04fc28e3e402dbc1ced37156d850f8","integrity":"sha512-YptuuKqIEtMEry6AbeuvbgpaVzT+qdyxEs1wTS15tcfhu54Uzgq37XGQkLh/lcfW53UlZ/TFL5tjMuy0I8fAPw==","tarball":"https://registry.npmjs.org/@aduh95/format-phone-number/-/format-phone-number-1.0.2.tgz","fileCount":225,"unpackedSize":63469,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgsPmgCRA9TVsSAnZWagAAE5cP/0TmooNiIJbJtN8eqOVu\nsBnamxtHiC0gekIHl39RpR2zSdjgJsDi1iNUHcIvao2OgS683NQhlxtdYkwg\nBwukjcGaAHya10rY3N79dmwgIMjXKKKj/IgCU4RCc0vCgAVEbBD7uv4yB1xe\neJ7rm85r6Fx6v4O0HIGtxfeeI4Ri6BUz9dlEvGXJLA+ikXj10aK6pWGmE4Q7\nGtbjts9KJrSDL43zDwPeTvpiFSaWT3QG0LO6BcbuikWNOpnw+F8GxxxSBE0x\njk1yjpekTkXe+rlZzpXHg0CRu+dSyjNk5KPGwr0UsCjoUXLDUSuvCjwnGXb6\nqlnQFyQQdsbfnkd/SmoMpF1swqYy18QRkG3qUeGK86JkFbBBik/AcWCgr9Hh\nmfVjo0LaPKdgPTyNPopDynuQw/jijHDZPBEz8+6h06BwzOf6RyjxMlY+2hbn\n1Bqq8yT12c2/XlFkjK7Zu/vBz1FvjSV69IjnSg65RNtN1zwvGLknJJa72qVd\nwUf/SuNlJhVR6aRTdkWnzueQCAR9TVuyBc/GpJhqO2SLMY0azstifdv8gAZ1\nfLZZEnFAmN/vF8qXOOyI0T6ODuOTLq6YOjE0O2eGdZM3LUNjs06l3RiKMNGg\n66X7oCT7dfRPiCz8ROCED+7kf0f/gE5KdACvYWQTQSWpKggaq8bMHL9nrAS5\n2ccP\r\n=Sa33\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDofndTgE3sa+XRRwmquMf9H8b7cnhqHYYU/6qEJTasmAIhAKe3WB2Kq8DhrMX5UjrZKrw6LBVyqswrEhtJkSwr9qnt"}]},"_npmUser":{"name":"aduh95","email":"duhamelantoine1995@gmail.com"},"directories":{},"maintainers":[{"name":"aduh95","email":"duhamelantoine1995@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/format-phone-number_1.0.2_1622210976133_0.37510683127595446"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-20T23:41:21.867Z","1.0.0":"2021-03-20T23:41:22.069Z","modified":"2022-04-04T11:38:03.096Z","1.0.1":"2021-05-28T14:05:53.678Z","1.0.2":"2021-05-28T14:09:36.303Z"},"maintainers":[{"name":"aduh95","email":"duhamelantoine1995@gmail.com"}],"description":"Simple JavaScript library that takes a phone number in the E164 format and returns it in an international format. It's using Google's [libphonenumber](https://github.com/google/libphonenumber) as a source of truth for how to format a phone number.","keywords":["libphonenumber","format","phone","phone number"],"license":"SEE LICENSE IN LICENSE","readme":"# @aduh95/format-phone-number\n\nSimple JavaScript library that takes a phone number in the E164 format and\nreturns it in an international format. It's using Google's\n[libphonenumber](https://github.com/google/libphonenumber) as a source of truth\nfor how to format a phone number.\n\n## Usage\n\n```sh\nnpm install @aduh95/format-phone-number\n\n# or if you're using yarn\nyarn add @aduh95/format-phone-number\n```\n\n```js\nimport format from \"@aduh95/format-phone-number\";\n\nawait format(\"+16135991209\"); // +1 613-599-1209\n\n// You can omit the leading `+`\nawait format(\"16135991209\"); // +1 613-599-1209\n```\n\nEnsure that the phone number is valid and includes the country code, otherwise\nyou'll get undefined behavior.\n\n## Build\n\n```sh\nyarn install\nyarn build\nyarn test\n```\n","readmeFilename":"README.md"}