# Functions
BasePath returns a normalized base path, stripping the leading '/' if present.
BinaryCase ported from https://github.com/Gi60s/binary-case/blob/master/index.js#L86.
Camelcase string with optional args.
CertDomainNames returns the certificate domain name and alternative names for a requested domain.
ClearHeader removes all content header fields.
DateSuffix returns the date suffix for t.
DecodeAlias decodes an alias string which was encoded by the EncodeAlias function.
Domain returns the effective domain (TLD plus one).
EncodeAlias encodes an alias string so that it conforms to the requirement of matching (?!^[0-9]+$)([a-zA-Z0-9-_]+).
Env returns a slice from environment variable map.
Exists returns true if the file exists.
ExitStatus returns the exit status of cmd.
Fatal error.
FixMultipleSetCookie staggers the casing of each set-cookie value to trick API Gateway into setting multiple in the response.
Indent the given string.
IsBucketExists returns true if err is not nil and represents an existing bucket.
IsCI returns true if the env looks like it's a CI platform.
IsJSON returns true if the string looks like json.
IsJSONLog returns true if the string looks likes a json log.
IsListening returns true if there's a server listening on `u`.
IsNoCredentials returns true if err is not nil and represents missing credentials.
IsNotFound returns true if err is not nil and represents a missing resource.
IsThrottled returns true if err is not nil and represents a throttled request.
IsWildcardDomain returns true if the domain is a wildcard.
Log outputs a log message.
LogClear clears the line and outputs a log message.
LogListItem outputs a list item.
LogName outputs a log message with name.
LogPad outputs a log message with padding.
LogTitle outputs a log title.
ManagedByUp appends "Managed by Up".
Md5 returns an md5 hash for s.
Milliseconds returns the duration as milliseconds.
MillisecondsSince returns the duration as milliseconds relative to time t.
NewInlineProgressInt with the given total.
NewProgressInt with the given total.
Pad helper.
ParseDuration string with day and month approximation support.
ParseSections returns INI style sections from r.
PrefixLines prefixes the lines in s with prefix.
ReadFileJSON reads json from the given path.
RemoveSubdomains returns the domain without the n left-most subdomain(s).
StringsContains returns true if list contains s.
StripLerna strips the owner portion of a Lerna-based tag.
ToFloat returns a float or NaN.
UniqueStrings returns a string slice of unique values.
WaitForListen blocks until `u` is listening with timeout.
WildcardMatches returns true if wildcard is a wildcard domain and it satisfies the given domain.