1.1.1 • Published 8 months ago

@andrao/tools v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

🧰 @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
1.1.1

8 months ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.1-alpha.1

1 year ago

1.0.0

1 year ago