Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
ember-libphonenumber-js
Advanced tools
Expose libphonenumber-js to your ember project (with template helpers)
This addon provides a way to add Google's libphonenumber
to your ember project using libphonenumber-js
from https://github.com/catamphetamine/libphonenumber-js
. This version of libphonenumber
is much lighter than Google's, coming in at 120 KB.
Additionally, this addon provides some template helper (format
only at this time). Computed properties are coming soon.
import { parse, format } from 'libphonenumber-js'
parse('8 (800) 555 35 35', 'RU')
// { country: 'RU', phone: '8005553535' }
format('2133734253', 'US', 'International')
// '+1 213 373 4253'
For other uses, please visit https://github.com/catamphetamine/libphonenumber-js
The helper takes 2 parameters, a phone number and a 2 byte country code (ex: 'US'). Additionally, you can force international formatting by providing forceIntl=true
.
{{format-phonenumber '6615551212' 'US'}} {{!-- (661) 555-1212 --}}
forceIntl=true
{{format-phonenumber '6615551212' 'US' forceIntl=true}} {{!-- +1 661 555 1212 --}}
FAQs
Expose libphonenumber-js to your ember project (with template helpers)
We found that ember-libphonenumber-js 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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.