geolocation-infos

4.0.0 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.0.03latest

Version History

VersionDownloads (Last 7 Days)Published
4.0.03
3.0.01
2.0.00
1.0.00

Package Sidebar

Install

npm i geolocation-infos

Weekly Downloads

0

Version

4.0.0

License

ISC

Unpacked Size

187 kB

Total Files

9

Last publish

Collaborators

  • bigue