geolocation-infos

### 1. How to import 1. Use in gulp

Usage no npm install needed!

<script type="module">
  import geolocationInfos from 'https://cdn.skypack.dev/geolocation-infos';
</script>

README

npm-geolocation

This repository implements the solution for taking phones from api.

1. How to import

  1. Use in gulp
gulp.task("geolocation", function () {
  gulp.src('./node_modules/npm-geolocation/dist/index.min.js')
    .pepe(gulp.concat('geolocation.js'))
    .pipe(gulp.dest("dist/");
});
  1. Or any other...

2. How to use

  1. Instance new object: This change the .header__phone for the formated Phone and .header__phone_link for 'tel:number'.
const url = '...';
const geolocation = new GeolocationPhone(url, 'name');
  1. If you need the whatsapp number use:
const whatsapp = geolocation.getWhats();