1.0.2 • Published 9 months ago

ippql-helpers v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

ippql-helpers

Gettin started

  1. Install the package
npm i ippql-helpers
  1. How to use it in your file (ex: paste it in an index.js file and then run node index.js):
const { ippqlHelpers } = require('ippql-helpers');

const entries = [
  {
    'herzog-fiesser-partner-de': 856,
    data_1: [
      {
        foreign_rep_name: 'HERZOG FIESSER & PARTNER',
        foreign_rep_country: 'DE',
      },
    ],
  },
  {
    '3m-innovative-properties-co-us': 2387,
    data_1: [
      {
        foreign_rep_name: '3M INNOVATIVE PROPERTIES CO',
        foreign_rep_country: 'US',
      },
    ],
  },
];

const sortedAndSlicedEntries = ippqlHelpers.sortAndSliceIppqlResults(entries, 3)
const formattedCountries = ippqlHelpers.getFormattedCountries(sortedAndSlicedEntries,  'foreign_rep_country')

Built with

Company

IP Pilot: