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.
cut-ordered
Advanced tools
Like unix's cut(1) except columns can be reordered, and within ~1.3x speed.
Like a cut(1)
that allows reordering of fields.
UNIX cut(1)
is a great utility, but I found myself wanting to often reorder fields. This cmd utility attempts to be similar in terms of API to cut(1)
but respects the given column order. This is especially useful when wanting to sort data numerically.
npm install -g cut-ordered
echo 'a b c' | cut-ordered -f 3,2,1 -d ' '
c b a
echo 'a b c' | cut-ordered -f 3,1 -d ' '
c a
The line parser is a custom compiled function: while gross-looking this means it should execute as quickly as possible (currently about 1.3x as slow as cut(1)
). To compare the two:
npm run bench
...
cut
real 0m5.698s
user 0m5.366s
sys 0m0.133s
cut-ordered
real 0m7.646s
user 0m6.717s
sys 0m0.873s
MIT
FAQs
Like unix's cut(1) except columns can be reordered, and within ~1.3x speed.
The npm package cut-ordered receives a total of 0 weekly downloads. As such, cut-ordered popularity was classified as not popular.
We found that cut-ordered 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.