
Research
Node.js Fixes AsyncLocalStorage Crash Bug That Could Take Down Production Servers
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.
singleline-next
Advanced tools
Convert a multi line string into a single line string - great for classnames and more
Install the dependency
npm install singleline --save-dev
import singleline from 'singleline';
...
<div
className={singleline(`
rrs__select-container
rrs__select-container--multiselect
${(disabled === true) ? 'rrs__select-container--disabled' : ''}
${(isTouchDevice === true) ? 'rrs__is-touch' : 'rrs__is-desktop'}
${(isOptionsPanelOpen === true) ? 'rrs__options-container--visible' : ''}
${altered ? 'rrs__has-changed': ''}
`)}
>
Some output
</div>
// className="rrs__select-container rrs__select-container--multiselect rrs__is-desktop rrs__options-container--visible"
Passing second parameter in as true, removes spaces around the HTML tags but it still respects the spaces in the contents of the tags and attributes.
import singleline from 'singleline';
var testMultilineHTMLString = singleline(`
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>GDD - Giphy Github embed Gif code explorer</title>
<link href="css/styleguide.css" rel="stylesheet">
</head>
<body>
<div id="root" class="root"></div>
<script src="app.js"></script>
</body>
</html>
`, true);
console.log(testMultilineHTMLString);
// '<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>GDD - Giphy Github embed Gif code explorer</title><link href="css/styleguide.css" rel="stylesheet"></head><body><div id="root" class="root"></div><script src="app.js"></script></body></html>'
FAQs
Convert a multi line string into a single line string - great for classnames and more
The npm package singleline-next receives a total of 19 weekly downloads. As such, singleline-next popularity was classified as not popular.
We found that singleline-next 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
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.