
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@croct/logging
Advanced tools
Logging
An interoperability layer for logging libraries.
📦 Releases
·
🐞 Report Bug
·
✨ Request Feature
We recommend using NPM to install the package:
npm install @croct/logging
The following example shows how to log a message using the ConsoleLogger
:
import {ConsoleLogger, LogLevel} from '@croct/logging';
const logger = new ConsoleLogger();
logger.log({
level: LogLevel.ERROR,
message: 'Unable to load data',
details: {
cause: 'The request failed',
status: 500,
},
});
This package provides the following implementations:
Because JavaScript allows throwing pretty much anything, proving more information about the error often requires some boilerplate code.
This package provides a few utilities to make it easier to log errors:
Contributions to the package are always welcome!
Before running the test suites, the development dependencies must be installed:
npm install
Then, to run all tests:
npm run test
Run the following command to check the code against the style guide:
npm run lint
Before building the project, the dependencies must be installed:
npm install
Then, to build the CommonJS module:
npm run build
Copyright © 2015-2022 Croct Limited, All Rights Reserved.
All information contained herein is, and remains the property of Croct Limited. The intellectual, design and technical concepts contained herein are proprietary to Croct Limited s and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained from Croct Limited.
FAQs
An interoperability layer for logging libraries.
We found that @croct/logging demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.