
Research
Security News
The Landscape of Malicious Open Source Packages: 2025 Mid‑Year Threat Report
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
ascii-whitespace
Advanced tools
A regular expression for ASCII/HTML whitespace, as defined by W3C and WHATWG.
A Node.js module containing a regular expression for ASCII/HTML whitespace, as defined by W3C and WHATWG.
ASCII whitespace means any combination of U+0009, U+000A, U+000C, U+000D, or U+0020.
npm install ascii-whitespace --save
const asciiWhitespace = require('ascii-whitespace')()
asciiWhitespace instanceof RegExp // true
asciiWhitespace.test(' ') // true
W3C’s definition, from the HTML5 specification (retrieved 2017-03-07):
The space characters, for the purposes of this specification, are U+0020 SPACE, "tab" (U+0009), "LF" (U+000A), "FF" (U+000C), and "CR" (U+000D).
WHATWG's definition (retrieved 2017-03-07):
An ASCII whitespace is U+0009, U+000A, U+000C, U+000D, or U+0020.
FAQs
A regular expression for ASCII/HTML whitespace, as defined by W3C and WHATWG.
The npm package ascii-whitespace receives a total of 5 weekly downloads. As such, ascii-whitespace popularity was classified as not popular.
We found that ascii-whitespace 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
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.