Preparing search index...
The search index is not available
EarthMC-NPM
EarthMC-NPM
utils/functions
formatString
Function formatString
format
String
(
str
,
removeAccents
?
)
:
string
Parameters
str
:
string
removeAccents
:
boolean
= false
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
src
api
dynmap
Dynmap.ts
default
Dynmap
GPS.ts
default
GPS
Nations.ts
default
Nations
Players.ts
default
Players
Residents.ts
default
Residents
Towns.ts
default
Towns
squaremap
GPS.ts
default
GPS
Nations.ts
default
Nations
Players.ts
default
Players
Residents.ts
default
Residents
Squaremap.ts
default
Squaremap
Towns.ts
default
Towns
parser.ts
parseInfoString
parseNations
parsePlayers
parsePopup
parseResidents
parseTowns
common.ts
getNearest
withinBounds
withinTown
helpers
DataHandler.ts
default
EntityApi.ts
EntityApi
EventEmitter.ts
default
types
index.ts
APINationInfo
AssertPositive
BaseNation
BaseTown
CardinalDirection
ConfigResponse
DiscordReqObject
DiscordResObject
HexString
Location
MapArea
MapResponse
Markerset
Nation
NationCapital
NestedOmit
OAPINation
OAPIResident
OAPITown
OnlinePlayer
Opacity
ParsedPlayer
Player
PlayersResponse
Point2D
Prettify
RawEntity
RawEntityPerms
RawEntitySpawn
RawEntityStats
RawEntityStatus
RawEntityV3
RawFlagPerms
RawLocationResponseV3
RawNation
RawPlayer
RawPlayerV3
RawQuarterResponseV3
RawResident
RawServerInfoV2
RawServerInfoV3
RawTown
RawTownCoordinates
RawTownPerms
Resident
Route
RouteInfo
RouteKey
RouteType
Routes
SquaremapArea
SquaremapAreaType
SquaremapIcon
SquaremapLocation
SquaremapMapResponse
SquaremapMarker
SquaremapMarkerset
SquaremapNation
SquaremapOnlinePlayer
SquaremapPlayer
SquaremapPlayersResponse
SquaremapPolygon
SquaremapPolyline
SquaremapRawPlayer
SquaremapTown
StrictPoint2D
StringContainedWithin
StringEndsWith
StringStartsWith
Timestamps
Town
TownBounds
TownFlags
TownHome
UpdatedTile
ValidateShape
ValuesOf
AnyMap
DynmapMap
SquaremapMap
Maps
dynmap.ts
ConfigResponse
MapArea
MapResponse
Markerset
PlayersResponse
RawPlayer
TownHome
UpdatedTile
gps.ts
CardinalDirection
Location
Point2D
Route
RouteInfo
RouteKey
RouteType
SquaremapLocation
StrictPoint2D
Routes
nation.ts
APINationInfo
BaseNation
Nation
NationCapital
SquaremapNation
oapi.ts
DiscordReqObject
DiscordResObject
RawEntityPerms
RawEntityV3
RawFlagPerms
RawLocationResponseV3
RawPlayerV3
RawQuarterResponseV3
RawServerInfoV2
RawServerInfoV3
OAPINation
OAPIResident
OAPITown
RawEntity
RawEntitySpawn
RawEntityStats
RawEntityStatus
RawNation
RawResident
RawTown
RawTownCoordinates
RawTownPerms
Timestamps
player.ts
OnlinePlayer
ParsedPlayer
Player
SquaremapOnlinePlayer
SquaremapPlayer
resident.ts
Resident
squaremap.ts
SquaremapPlayersResponse
SquaremapPolygon
SquaremapPolyline
SquaremapArea
SquaremapAreaType
SquaremapIcon
SquaremapMapResponse
SquaremapMarker
SquaremapMarkerset
SquaremapRawPlayer
town.ts
BaseTown
SquaremapTown
Town
TownBounds
TownFlags
util.ts
AssertPositive
HexString
NestedOmit
Opacity
Prettify
StringContainedWithin
StringEndsWith
StringStartsWith
ValidateShape
ValuesOf
utils
endpoint.ts
EndpointVersion
ReqOptions
V3RequestBody
asJSON
configData
get
getArchive
mapData
playerData
townyData
useArchive
errors.ts
FetchError
InvalidError
NotFoundError
NotFound
functions.ts
validChars
asBool
average
averageNationPos
calcArea
calcAreaPoints
editPlayerProp
editPlayerProps
euclidean
fastMerge
fastMergeUnique
formatString
genRandomString
getAveragePos
getExisting
hypot
isInvitable
manhattan
range
roundToNearest16
safeParseInt
sqr
strictFalsy
stripInvalidChars
OAPI.ts
default
OAPIV2
OAPIV3
main.ts
APINationInfo
AnyMap
AssertPositive
BaseNation
BaseTown
CardinalDirection
ConfigResponse
DiscordReqObject
DiscordResObject
Dynmap
DynmapMap
FetchError
HexString
InvalidError
Location
MapArea
MapResponse
Maps
Markerset
Nation
NationCapital
NestedOmit
NotFound
NotFoundError
OAPINation
OAPIResident
OAPITown
OnlinePlayer
Opacity
ParsedPlayer
Player
PlayersResponse
Point2D
Prettify
RawEntity
RawEntityPerms
RawEntitySpawn
RawEntityStats
RawEntityStatus
RawEntityV3
RawFlagPerms
RawLocationResponseV3
RawNation
RawPlayer
RawPlayerV3
RawQuarterResponseV3
RawResident
RawServerInfoV2
RawServerInfoV3
RawTown
RawTownCoordinates
RawTownPerms
Resident
Route
RouteInfo
RouteKey
RouteType
Routes
Squaremap
SquaremapArea
SquaremapAreaType
SquaremapIcon
SquaremapLocation
SquaremapMap
SquaremapMapResponse
SquaremapMarker
SquaremapMarkerset
SquaremapNation
SquaremapOnlinePlayer
SquaremapPlayer
SquaremapPlayersResponse
SquaremapPolygon
SquaremapPolyline
SquaremapRawPlayer
SquaremapTown
StrictPoint2D
StringContainedWithin
StringEndsWith
StringStartsWith
Timestamps
Town
TownBounds
TownFlags
TownHome
UpdatedTile
ValidateShape
ValuesOf
endpoint
formatString
MojangLib
OfficialAPI
Aurora
fetchServer
getServerInfo