Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@doctolib/libphonenumber
Advanced tools
Phone number internationalization interface using libphonenumber.
# Install
npm install && npm run install:all && npm run build:all
npm run update:all && npm run build:all
libphonenumber.getSupportedRegionCodes(): [{regionCode, countryCode}]
List supported region codes.
libphonenumber.parseRegionCode(regionCode: String, number: String): String
Return region code from provided number or current region code.
libphonenumber.isValidNumber(regionCode: String, number: String): Boolean
Return true if phone number is valid for regionCode.
libphonenumber.injectCountryCode(defaultRegionCode: String, regionCode: String, number: String): Boolean
Replace or inject number countryCode.
libphonenumber.formatNumber(defaultRegionCode: String, regionCode: String, number: String): String
Format number as a national one if number region is the current region, otherwise as an international none.
libphonenumber.formatInputNumber(regionCode: String, number: String): String
Try to format provided number as it is typed.
FAQs
libphonenumber customized
We found that @doctolib/libphonenumber demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.