4.0.0 • Published 5 years ago

geolocation-infos v4.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

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();
4.0.0

5 years ago

3.0.0

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago