
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
The mathparse
library is a Python module designed to evaluate mathematical equations contained in strings.
Here are a few examples:
from mathparse import mathparse
mathparse.parse('50 * (85 / 100)')
>>> 42.5
mathparse.parse('one hundred times fifty four', mathparse.codes.ENG)
>>> 5400
mathparse.parse('(seven * nine) + 8 - (45 plus two)', language='ENG')
>>> 24
pip install mathparse
The language parameter must be set in order to evaluate an equation that uses word operators. The language code should be a valid ISO 639-2 language code.
See release notes for changes.
FAQs
mathparse is a library for solving mathematical equations contained in strings
We found that mathparse demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.