Product
Introducing Ruby Support in Socket
Socket is launching Ruby support for all users. Enhance your Rails projects with AI-powered security scans for vulnerabilities and supply chain threats. Now in Beta!
@arianee/utils
Advanced tools
This library contains various utilities that are used across the Arianee projects.
This library contains various utilities that are used across the Arianee projects.
A wrapper for fetch
like functions that caches the response for well-known arianee urls for a given time (default 1 hour, can be overridden by setting the options.timeToLive
property, the cache map can also be passed with options.cache
).
Usage:
// simplest usage
cachedFetchLike(fetch);
// can be composed with other fetch wrappers
cachedFetchLike(retryFetchLike(defaultFetchLike));
A wrapper for fetch
that retry the request on failure.
Usage:
// simplest usage
retryFetchLike(fetch);
// can be composed with other fetch wrappers, retries can be passed as a second optional argument
retryFetchLike(defaultFetchLike, 2);
A fetch
like function that works in node and in the browser by selecting the appropriate implementation based on environment (node-fetch
or DOM fetch
).
Usage:
defaultFetchLike('https://google.com');
FAQs
This library contains various utilities that are used across the Arianee projects.
The npm package @arianee/utils receives a total of 398 weekly downloads. As such, @arianee/utils popularity was classified as not popular.
We found that @arianee/utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Product
Socket is launching Ruby support for all users. Enhance your Rails projects with AI-powered security scans for vulnerabilities and supply chain threats. Now in Beta!
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.