0.0.2 • Published 4 years ago

sim4me v0.0.2

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

sim4me

npm version install size Actions Status

This library gets the amount of traffic from sim4.me.

Install

# npm
$ npm install sim4me

# or yarn
$ yarn add sim4me

Usage

const { traffic } = require('sim4me');

(async () => {
  try {
    const result = await traffic({
      phone: '09012345678',
    });
    console.log(result);
  } catch (error) {
    console.log(error);
  }
})();

API

traffic(options)

options

Type: object

  • options.phone: string

Target phone number.

return

Type: object

  • object.total: number

Total traffic.

  • object.traffic: number[]

Values of daily traffic.

  • object.label: number[]

Dates.