
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
abimongo_utils
Advanced tools
A modular utility library for Node.js projects, starting with a robust, extensible logger utility. This library is designed to be expanded with additional utilities over time, making it a central toolkit for your backend applications.
A modular utility library for Node.js projects, starting with a robust, extensible logger utility. This library is designed to be expanded with additional utilities over time, making it a central toolkit for your backend applications.
info
, debug
, error
, etc.)npm install abimongo_utils
import { setupLogger } from 'abimongo_utils/logger/setupLogger';
const logger = setupLogger({
level: 'info',
transporters: [
{
write: (msg: string) => {
// Write to console, file, or any custom destination
console.log(msg);
}
},
// Add other properties here
],
hooks: {
onLog: (msg, meta) => {
// Custom logic after logging
},
onError: (err, meta) => {
// Custom error handling
}
},
enrichMetadata: (meta) => ({
...meta,
timestamp: new Date().toISOString(),
}),
excludedSources: ['test'],
});
logger.info('Application started', { source: 'app' });
logger.error('Something went wrong', { source: 'service', error: new Error('fail') });
If you already have a logger instance, you can pass it to setupLogger
:
const customLogger = {
info: (msg: string) => { /* ... */ },
error: (msg: string) => { /* ... */ },
};
const logger = setupLogger({ logger: customLogger });
A docker-compose.yml
is provided for local development:
docker-compose up
This will mount your code, install dependencies, build the library, and keep the container running for development and testing.
npm run build
– Build the librarynpm test
– Run testsnpm run lint
– Lint the codebaseThis library is published to npm via GitHub Actions when a new version tag (v*.*.*
) is pushed to the main
or master
branch.
The abimongo_utils
library is designed to be extended. Future utilities can be added under the src/
directory and exported via the main entry point.
ISC
Contributions are welcome! Please open issues or submit pull requests for new utilities or improvements.
FAQs
A modular utility library for Node.js projects, starting with a robust, extensible logger utility. This library is designed to be expanded with additional utilities over time, making it a central toolkit for your backend applications.
The npm package abimongo_utils receives a total of 32 weekly downloads. As such, abimongo_utils popularity was classified as not popular.
We found that abimongo_utils 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.