
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
Transform a string to a one line string by converting and merging line breaks/carriages, tabs, spaces
Transform a string to a one line string by converting and merging line breaks/carriages, tabs, spaces.
If you want to display some strings in the console that could have potentially have spaces, line breaks etc. that are not really important.
$ npm install --save one-liner
var oneliner = require('oneliner')
var oneline = oneliner(`Hey !
This is my text file
with a lot of blabla and some code:
function t(a, b) {
return a + b;
}`)
console.log(oneline)
// Hey ! This is my text file with a lot of blabla and some code: function t(a, b) { return a + b; }
It also support template literals:
oneliner`This is amazing.
It truly is phenomenal
based on what they say`
It replaces and collapses \t\r\n and spaces.
FAQs
Transform a string to a one line string by converting and merging line breaks/carriages, tabs, spaces
The npm package one-liner receives a total of 965 weekly downloads. As such, one-liner popularity was classified as not popular.
We found that one-liner 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 discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.