
Research
/Security News
Chrome and Firefox Extensions Posing as Free VPNs Add Clipboard Stealers via Malicious Updates
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.
nanpa_tools
Advanced tools
This library is used to handle NANPA telephone numbers while at the same time gathering information about them.
Add this library to your package.json configuration:
"dependencies": {
"nanpa_tools": "latest"
}
Below you will find a few examples for the most common usage. More examples can be found in the tests.
var nanpa_tools = require('nanpa_tools');
if (nanpa_tools.isNanpa("13055556666")) {
...
}
}
var result = nanpa_tools.resolve("13055556666");
If the number is a NANPA number, the result object will contain:
true if the given number is a Toll Free.true if the given number is a Premium Number. var result = nanpa_tools.resolveInterIntra("13055556666", "17866667777");
The result object will contain:
true if the call should be considered Intra-State. US calls only.true if the call should be considered Inter-State. US calls only.This project uses standard npm scripts. Current tasks include:
To run a task, just do:
npm run build
To contribute:
npm run build and make sure everything is ok before submitting the pull
request (make eslint happy).The source code is released under Apache 2 License.
Check LICENSE file for more information.
FAQs
A library with tools to work with NANPA numbers
We found that nanpa_tools 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
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.