Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

libphonenumber-geo-carrier

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libphonenumber-geo-carrier - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

9

package.json
{
"name": "libphonenumber-geo-carrier",
"version": "1.0.0",
"version": "1.0.1",
"description": "This library includes the geocoding and carrier mapping functionalities that are available in some of googles libphonenumber libraries but not in libphonenumber-js (a port of libphonenumber).",

@@ -37,3 +37,10 @@ "main": "lib/index.js",

"libphonenumber-js": "^1.7.48"
},
"repository": {
"type": "git",
"url": "https://github.com/mmende/libphonenumber-geo-carrier"
},
"bugs": {
"url": "https://github.com/mmende/libphonenumber-geo-carrier/issues"
}
}

5

README.md

@@ -33,6 +33,7 @@ # What does this library do?

const mobileNumber = parsePhoneNumberFromString('01701234567', 'DE')
const originalCarrier = await carrier(fixedLineNumber) // T-Mobile
// const originalCarrier = await carrier(fixedLineNumber) //
const originalCarrier = await carrier(mobileNumber) // T-Mobile
// Works with locale as well, but there are not so much translations available for carriers:
// const originalCarrier = await carrier(fixedLineNumber, 'zh')
}
main()
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc