Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
strip-newlines
Advanced tools
An ES6 template string tag to replace newlines, indentation, and surrounding whitespace with a single space character.
An ES6 template string tag to replace newlines, indentation, and surrounding whitespace with a single space character.
This module, unlike dedent, goes beyond stripping out indentation whitespace and destroys all new line characters to produce a single line paragraph.
For example:
import snl from 'strip-newlines';
console.log(snl`In a sense we've come to our nation's capital to cash a check.
When the architects of our republic wrote the magnificent words
of the Constitution and the Declaration of Independence, they
were signing a promissory note to which every American was to
fall heir.`);
Would produce the output:
In a sense we've come to our nation's capital to cash a check. When the architects of our republic wrote the magnificent words of the Constitution and the Declaration of Independence, they were signing a promissory note to which every American was to fall heir.
npm install strip-newline
FAQs
An ES6 template string tag to replace newlines, indentation, and surrounding whitespace with a single space character.
The npm package strip-newlines receives a total of 44 weekly downloads. As such, strip-newlines popularity was classified as not popular.
We found that strip-newlines 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.