Socket
Socket
Sign inDemoInstall

@azure/core-util

Package Overview
Dependencies
2
Maintainers
2
Versions
107
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @azure/core-util

Core library for shared utility methods


Version published
Weekly downloads
4.1M
increased by3.63%
Maintainers
2
Install size
356 kB
Created
Weekly downloads
 

Package description

What is @azure/core-util?

The @azure/core-util package provides a set of utilities used by Azure SDK for JavaScript packages. These utilities include functions for dealing with delays, tracing, and other common tasks that are useful when interacting with Azure services or building applications that integrate with the Azure ecosystem.

What are @azure/core-util's main functionalities?

delay

Provides a way to pause execution for a specified amount of time. This is useful for implementing retries or waiting for an operation to complete.

async function main() {
  await delay(1000);
  console.log('Delayed for 1 second');
}
main();

trace

Facilitates distributed tracing of operations, allowing for monitoring and diagnosing issues across distributed systems.

const span = createSpan('my-operation', {kind: SpanKind.INTERNAL});
try {
  // operation code here
} finally {
  span.end();
}

Other packages similar to @azure/core-util

Readme

Source

Azure Core Util client library for JavaScript (Experimental)

This library is intended to provide various shared utility functions for client SDK packages.

Getting started

Requirements

Currently supported environments

  • LTS versions of Node.js
  • Latest versions of Safari, Chrome, Edge, and Firefox.

See our support policy for more details.

Installation

This package is primarily used in authoring client SDKs and not meant to be consumed directly by end users.

Key concepts

Utility methods provided by this library should be stateless.

Examples

Examples can be found in the samples folder.

Next steps

Look at usage in dependent client SDKs.

Troubleshooting

If you run into issues while using this library, please feel free to file an issue.

Contributing

If you'd like to contribute to this library, please read the contributing guide to learn more about how to build and test the code.

Impressions

Keywords

FAQs

Last updated on 11 Apr 2024

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