Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@teamteanpm2024/rerum-recusandae-porro
Advanced tools
![@teamteanpm2024/rerum-recusandae-porro](https://raw.githubusercontent.com/tektrans/tektrans-arts/main/projects/@teamteanpm2024/rerum-recusandae-porro/github-@teamteanpm2024/rerum-recusandae-porro-social-banner-no-badges.jpg)
A wrapper of winstonjs logger, replacing deprecated logger from KOMODO-SDK.
This logger should be used by TEKTRANS projects. But ofcourse you can use it too.
npm i @teamteanpm2024/rerum-recusandae-porro
Using @teamteanpm2024/rerum-recusandae-porro is easy. Just include the module and you can use it with default behaviors.
const logger = require('@teamteanpm2024/rerum-recusandae-porro');
logger.info('User created', {
username: 'johndoe',
fullename: 'John Doe',
comment: 'who is he?',
});
logger.warn('A warn message', {
eCode: e.code, eMessage: e.message
});
See here for more examples.
You can override behavior by using environment (process.env) or global variable or by specified in config object. Remember to put those override statement before first call of "require('@teamteanpm2024/rerum-recusandae-porro')" statement.
Here is the list:
{
level: 'verbose',
label: null,
// default is "logs" directory on current workdir
directory: path.join(process.cwd(), 'logs'),
filename: 'log',
// default is using generic level value
console_level: null,
// default is using generic level value
file_level: null,
// default is no old file removal
max_files: null,
}
See examples/using-config.js for usage example of using config object.
Redis transport can be enabled by putting "redis" property on config object.
This config object will use default options for redis transport:
{
// ...
redis: true
}
This will specify some property of redis transport:
{
// ...
redis: {
level: 'verbose',
host: 'localhost',
port: 6379,
auth: null,
channel: null,
}
}
See examples/redis.js for code example.
Looks like logger.end() will not wait for all logs to be flushed on redis. Expect for missing some of last logs on redis. Or you can put some delay (like 1-2 seconds) before closing the logger with end method.
See CHANGELOG.md.
Licensed under MIT License (see this file).
Feel free to use or fork it if you think it would be usefull for you.
Copyright PT. TEKNOLOGI TRANSAKSI DIGITAL (TEKTRANS) 2021.
FAQs
![@teamteanpm2024/rerum-recusandae-porro](https://raw.githubusercontent.com/tektrans/tektrans-arts/main/projects/@teamteanpm2024/rerum-recusandae-porro/github-@teamteanpm2024/rerum-recusandae-porro-social-banner-no-badges.jpg)
The npm package @teamteanpm2024/rerum-recusandae-porro receives a total of 7 weekly downloads. As such, @teamteanpm2024/rerum-recusandae-porro popularity was classified as not popular.
We found that @teamteanpm2024/rerum-recusandae-porro demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.