UNPKG
@adamlui/geolocate
Version:
latest (2.4.1)
2.4.1
2.4.0
2.3.1
2.3.0
2.2.1
2.2.0
2.1.0
2.0.16
2.0.15
2.0.14
2.0.13
2.0.12
2.0.11
2.0.10
2.0.9
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Fetch IP geolocation data from the CLI.
github.com/adamlui/js-utils
adamlui/js-utils
@adamlui/geolocate
/
dist
/
cli
/
lib
/
string.js
4 lines
(3 loc)
•
116 B
JavaScript
View Raw
1
2
3
4
module
.
exports
= {
toTitleCase
(
str
) {
return
str.
toLowerCase
().
replace
(
/\b\w/g
,
char
=>
char.
toUpperCase
()) } }