New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@andrao/tools

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@andrao/tools

[![npm version](https://badge.fury.io/js/@andrao%2Ftools.svg)](https://badge.fury.io/js/@andrao/tools) ![build](https://github.com/andrao/tools/workflows/CI/badge.svg)

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

🧰 @andrao/tools

npm version build

This repo contains a variety of lightweight server- and browser-compatible Typescript tools.

FunctionDescription
asyncIntervalCall an async function on interval until condition satisfied
capitalizeType-safe string capitalization
cloneClone an object
deepEqualAssert deep equality between two objects
isErrorError instance type predicate
retryExecute a callback function with retry parameters
safeAssert that T | undefined is T
timeAgoReturn the relative time difference string between now and the given date
timeoutPromisePromise-wrapped setTimeout()
trimFancy string trimming
uncapitalizeType-safe string uncapitalization
uriJoinLike path.join() but maintains the // in http(s)://
uuidGenerate a v4 UUID

It also contains two dependency-free query-string tools:

FunctionDescription
querystring/parseQueryStringQuery parameter parsing
querystring/stringifyQueryParamsQuery parameter stringification

FAQs

Package last updated on 08 Oct 2024

Did you know?

Socket

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