
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@evilkiwi/logger
Advanced tools
@evilkiwi/logger
provides a small interface on top of the existing console
API and includes things such as:
This package is available via NPM:
yarn add @evilkiwi/logger
# or
npm install @evilkiwi/logger
By default, @evilkiwi/logger
exports traditional logging methods using a shared logger instance. For example:
import { debug, error } from '@evilkiwi/logger';
try {
await something();
debug('success!');
} catch (e) {
error('failure!', e);
}
However, if you'd like to add namespaces and use multiple logger instances within your application, you can instead instantiate a new Logger:
import { createLogger } from '@evilkiwi/logger';
const loggerA = createLogger({
name: 'module-a',
color: '#FF0000',
});
const loggerB = createLogger({
name: 'module-b',
color: '#00FF00',
});
loggerA.debug('hello world A!');
loggerA.error('hello world B!');
You can also set a global namespace for all Logger instances created via your App. This can be useful if your console displays output from multiple systems, for example an Electron App or when using iFrames.
import { setNamespace } from '@evilkiwi/logger';
setNamespace({
name: 'website',
color: '#0000FF',
});
This will be pre-pended to all logging that passes through @evilkiwi/logger
, regardless of whether it was instanced.
FAQs
Pretty-print utility logger for browsers.
We found that @evilkiwi/logger 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
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.