Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@azure/core-util
Advanced tools
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.
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();
}
Lodash is a utility library offering a wide array of functions for tasks like data manipulation, testing, and logic operations. While it doesn't focus on Azure or distributed tracing specifically, it provides general-purpose utilities that are useful in many of the same scenarios as @azure/core-util.
The async package provides utilities for working with asynchronous JavaScript, such as managing series, parallel, and waterfall control flow. It's similar to @azure/core-util in that it helps manage asynchronous operations, but it doesn't include utilities for tracing or Azure-specific integrations.
This library is intended to provide various shared utility functions for client SDK packages.
See our support policy for more details.
This package is primarily used in authoring client SDKs and not meant to be consumed directly by end users.
Utility methods provided by this library should be stateless.
Examples can be found in the samples
folder.
Look at usage in dependent client SDKs.
If you run into issues while using this library, please feel free to file an issue.
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.
FAQs
Core library for shared utility methods
The npm package @azure/core-util receives a total of 2,260,547 weekly downloads. As such, @azure/core-util popularity was classified as popular.
We found that @azure/core-util demonstrated a healthy version release cadence and project activity because the last version was released less than 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.