STD
@webhare/std
offers APIs that may have generic use but are especially useful when building WebHare applications
String manipulation
GenerateUFS128BitId()
-> generateRandomId()
EncodeUFS(x)
-> encodeString(x, 'base64url')
DecodeUFS(x)
-> decodeString(x, 'base64url')
EncodeValue(x)
-> encodeString(x, 'attribute')
DecodeValue(x)
-> decodeString(x, 'attribute')
EncodeHTML(x)
-> encodeString(x, 'html')
DecodeHTML(x)
-> decodeString(x, 'html')
LIKE
operator -> wildcardsToRegExp
Promises
CreateDeferredPromise()
-> createDeferred
HSCompat
GenerateUFS128BitId()
-> generateRandomId()
EncodeUFS(x)
-> encodeString(x, 'base64url')
DecodeUFS(x)
-> decodeString(x, 'base64url')
EncodeValue(x)
-> encodeString(x, 'attribute')
DecodeValue(x)
-> decodeString(x, 'attribute')
EncodeHTML(x)
-> encodeString(x, 'html')
DecodeHTML(x)
-> decodeString(x, 'html')
LIKE
operator -> wildcardsToRegExp
CreateDeferredPromise()
->createDeferred
HSCompat
@webhare/hscompat
offers APIs useful for migrating to JS but things that we don't consider best practice
Datetime
makeDateFromParts
makeDateFromParts