Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
deconstruct-number-format
Advanced tools
Readme
To deconstruct a number format eg '-£#,##0.##0 /m', '(33 years)', '$ -99.00' and return a set of parameters to describe the format.
.
or ,
as decimal point.
or ,
as thousand separators.
or ,
as thousanths separators#
, 9
or 0
as number place holdersIf a format ends in a . or , then this will be taken as the decimal character UNLESS the same character is used elsewhere so:
#,###.
results in decimalChar = '.', thousands separator = ','#.###,
results in decimalChar = ',', thousands separator = '.'If a format only has one of ',' or '.' and the character only appears once it is taken as the decimal point
#,###
results in decimalChar = ','#.###
results in decimalChar = '.'If the character appears twice it is a separator
#,###,###
results in decimalChar = '.', thousands separator = ','#.###.###
results in decimalChar = ',', thousands separator = '.'When in doubt '.' is taken as the separator, so
#.###,#
results in decimalChar = '.', thousandths separator = ','
To create the same structure with decimalChar as ',', just add a '.' at start or end or extend expression eg.#.###,#
#.###,#.
#.###.###,#
FAQs
deconstruct a number format eg '-£#,##0.##0' and return a set of parameters to describe the format
We found that deconstruct-number-format 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.