
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
lapos-logger
Advanced tools
Minimalistic logger with global helpers for quick (read: lazy) logging
Is debugging javascript keeping you up at night?
Are you tired of having to console.log('foo')
your terribly written code?
Is it a struggle to finish reading this line?
Are you a L azy A ss P iece O f S hit?
... Then this is the logger for you!
This logger will create two minimalistic helpers in the global name space to enable you to lazily log as quickly and efficiently as possible, wherever you are in your code base.
// import the lapos logger
require('lapos-logger')();
// you can also provide override names for the global helpers
require('lapos-logger')('logger', 'getter');
// By default, this provides the `l` method and the logg `getter` on the global scope
new l; //test.js:8
l(); //test.js:9
logg //test.js:10
// The `l` function can also take parameters!
const a = "message";
l(a); //test.js:14 message
l("Hello World", 3, [1,2]); //test.js:15 Hello World 3 [ 1, 2 ]
l({ lazy: true, ugly: 'michael'}) //test.js:16 { lazy: true, ugly: 'michael'}
Each invocation will return the current filename and line number, followed by any additional parameters.
This is the global logger for all micro based libraries which makes use of this Stackoverlow answer.
FAQs
Minimalistic logger with global helpers for quick (read: lazy) logging
The npm package lapos-logger receives a total of 1 weekly downloads. As such, lapos-logger popularity was classified as not popular.
We found that lapos-logger demonstrated a not healthy version release cadence and project activity because the last version was released 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
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.