Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A minimalistic dependency free logger that supports the transport of logs into multiple streams, and can also work both in the browser and in nodejs environments.
Besides, it provides other minimalistic approach to use logger through using tagged template:
import { tinyTrack } from 'tiny-track';
// One stream
const tt = tinyTrack({
colorize: true,
format: 'json',
stream: process.stdout
}})
Where tt
is Tagged Template, which can take any numbers of placeholders with data you want to log.
npm install tiny-track
import { tinyTrack } from 'tiny-track';
// One stream
const tt = tinyTrack({
colorize: true,
format: 'json',
stream: process.stdout
}})
// Or multiple streams
const tt = tinyTrack([
{ colorize: true, stream: process.stdout, format: 'pretty', maxDepth: 5 },
{
level: ['debug', 'warn'],
colorize: false,
stream: fs.createWriteStream(path.resolve(process.cwd(), 'debug.log')),
},
{
level: 'error',
colorize: false,
stream: fs.createWriteStream(path.resolve(process.cwd(), 'error.log')),
},
])
// Browser compatible logger
const tt = tinyTrack({
colorize: false,
format: 'json', // or 'pretty'
}})
There are 4 log levels
tt\
[...]``tt\
![...]`, The exclamation mark
!` at the beginning indicates that is errortt\
w![...]`, The message should start with
w!`tt\
d![...]`, The message should start with
d!`FAQs
A minimalistic dependency free logger
The npm package tiny-track receives a total of 3 weekly downloads. As such, tiny-track popularity was classified as not popular.
We found that tiny-track 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.