Skip to content

Fast.Utils API

Use this index to locate public entries and module references, not as a second installation or configuration tutorial. Start with the usage guide; see the export inventory for all members and types.

Imports

Import named APIs from @fast-china/utils and use import type for types. Internal source and dist paths are not public entries.

Storage

Local, Session, configureStorage, base64StorageCodec

Signatures, parameters, returns and examples

Identity

installationIdentity, configureInstallationIdentity, getOrCreateInstallationId

Signatures, parameters, returns and examples

Logger

Logger, logger, configureLogger, createLogger

Signatures, parameters, returns and examples

Base64

DecodedText, decodeBase64, decodeBase64Url, decodeLatin1Base64, decodeSecureBase64, encodeSecureBase64

Signatures, parameters, returns and examples

Crypto

GenerateRandomBytes, FixedTimeEquals, MD5Encrypt, SHA1Encrypt, SHA256Bytes, SHA256Encrypt, SHA384Bytes, SHA384Encrypt, SHA512Bytes, SHA512Encrypt, HMACSHA256Encrypt, HMACSHA384Encrypt, HMACSHA512Encrypt, PBKDF2SHA256, HashPasswordPBKDF2SHA256, VerifyPasswordPBKDF2SHA256, HKDFSHA256, AESEncrypt, AESDecrypt, AESEncryptAuthenticated, AESDecryptAuthenticated, AESEncryptWithPassword, AESDecryptWithPassword, GenerateRSAKeyPair, RSAEncryptOAEP, RSADecryptOAEP, RSASignPSS, RSAVerifyPSS, GenerateECDSAKeyPair, ECDSASign, ECDSAVerify, GenerateECDHKeyPair, DeriveECDHSecret, DeriveECDHKeySHA256

Signatures, parameters, returns and examples

Array

chunk, removeNullishValues, unique, uniqueBy, groupBy, partition, difference, intersection, symmetricDifference, hasDuplicatesBy, allEqualBy

Signatures, parameters, returns and examples

Async

sleep, withTimeout, retry, mapConcurrent, debounce, throttle

Signatures, parameters, returns and examples

Number

formatBytes, randomInt

Signatures, parameters, returns and examples

Function

once

Signatures, parameters, returns and examples

String

copy, generateUuidV4, randomString

Signatures, parameters, returns and examples

Vue

useBreakpoints, useElementSize, useEventListener, useNow, useResizeObserver, useWindowSize

Signatures, parameters, returns and examples

Modules

Other modules: Color, Date, DOM, Environment, and Object.

Clipboard

See the copy-text guide for the workflow and String API for the copy contract.

Security and limitations

The runtime contract describes platform and entry-point boundaries; the cryptography guide explains algorithm selection. Base64, SecureBase64 and Storage crypto are encodings, not encryption. Installation identifiers are not authentication credentials.

Errors and compatibility

Each reference defines its own invalid-input, empty-value, exception and cancellation behavior. See the runtime contract for compatibility boundaries.