
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@8select/strulo
Advanced tools
Log messages in a structured format
using NPM
npm install --save @8select/strulo
const logger = require('@8select/strulo')
logger.debug('hello')
logger.info('hello from strulo')
logger.error('some error')
The DEBUG environment variable is used to enable these based on space or comma-delimited names. Here are some examples:
export DEBUG=DEBUG,ERROR,ALERT
displays only log messages with log level debug, error and alert
DEBUG {"message":"hello","level":"100","level_name":"DEBUG","time":1506502514498} +0ms
ERROR {"message":"some error","level":"400","level_name":"ERROR","time":1506502554430} +40s
+-- lib - "contains the lib files (ES5) + flow definitions"
| +-- index.js - "which is compiled with Babel and stripped of types"
| +-- index.js.flow - "which is the original file, with types left in it"
| +-- info.js
| +-- info.js.flow
| +-- ...
+-- src - "contains the source files (ES.next)"
| +-- index.js
| +-- info.js
| +-- ...
+-- test - "contains unit tests to related src structure
FAQs
Log messages in a structured format.
We found that @8select/strulo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.