Socket
Socket
Sign inDemoInstall

@nikic/utilities

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nikic/utilities

A set of useful utilities


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Set of Pivro utiliy functions

Environment Check (envCheck)

Used to check whether environment variables are defined during startup.

Throws an error if any of the specified environment variables are not defined.

Usage
envCheck([
  'REDIS_HOST',
  'MONGO_HOST',
  'MONGO_USER',
  'MONGO_PASS'
]);
Convert OpenTelemetry trace and span IDs to Datadog format

Converts OpenTelemetry representations of trace and span IDs (128bit unsigned int in hexadecimal representation) to Datadog (64bit unsigned int).

Usage
const {convertedTraceId, convertedSpanId} = otelToDatadog(traceId, spanId);

FAQs

Last updated on 30 Sep 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc