Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
ft-next-splunk-logger
Advanced tools
Logs stuff directly to splunk.
Requires a SPLUNK_URL environment variable to send stuff to. If you don't have one, talk to someone.
npm install --save ft-next-splunk-logger
The logger works pretty much the same as the debug module.
var log = require('ft-next-splunk-logger')('my-app-name');
log('Some stuff');
It will stick the app name and a timestamp at the beginnig of each log so the above will become
my-app-name 2015-05-30T12:54:54.479Z Some stuff
Like debug and console.log in node it uses util.format under the hood if the first arg is a string
log('here is a %s and %j', 'string', {foo:'bar'})
becomes:
here is a string and {"foo":"bar"}
Apparently splunk can parse json so the above should work well. But to make it easier if you pass just an object it will be formatted in the easiet way for splunk:
log({foo:'here is a string'})
becomes
foo="here is a string"
You can also pass it errors (but please don't, send them to sentry or somewhere useful):
log(new Error('bar'));
becomes:
Error: bar
FAQs
Log stuff Directly to splunk
The npm package ft-next-splunk-logger receives a total of 8 weekly downloads. As such, ft-next-splunk-logger popularity was classified as not popular.
We found that ft-next-splunk-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.