
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
ngx-phone-mask
Advanced tools
Angular directive for autoformatting phone numbers. Compatible with Angular 7. Currently doesn't support phone numbers with lengths other than 11. (`+7 (987) 123-45-67`)
Angular directive for autoformatting phone numbers. Compatible with Angular 7.
Currently doesn't support phone numbers with lengths other than 11. (+7 (987) 123-45-67
)
This libs rely on text-mask, so you need to install it.
Install via npm:
npm install ngx-phone-mask angular2-text-mask
or yarn:
yarn add ngx-phone-mask angular2-text-mask
Import in your app.module.ts
:
import { NgxPhoneMaskModule } from 'ngx-phone-mask';
@NgModule({
imports: [
NgxPhoneMaskModule
]
})
Use it:
<input ngxPhoneMask [(ngModel)]='yourModelName'>
or
<input ngxPhoneMask [formControl]='yourControl'>
or
<input ngxPhoneMask formControlName='yourControlName'>
You can set clean
to false
if you want formatted value in model.
<input ngxPhoneMask [(ngModel)]='yourModelName' valueType='full'>
This component is under development. Pull requests and issues (PR's better) are welcome.
Please feel free to leave your PRs, issues, feature requests.
FAQs
Angular directive for autoformatting phone numbers. Compatible with Angular 7. Currently doesn't support phone numbers with lengths other than 11. (`+7 (987) 123-45-67`)
The npm package ngx-phone-mask receives a total of 6 weekly downloads. As such, ngx-phone-mask popularity was classified as not popular.
We found that ngx-phone-mask demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.