Socket
Socket
Sign inDemoInstall

@indigov/zips-user-updates

Package Overview
Dependencies
14
Maintainers
13
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @indigov/zips-user-updates

A helper function to identify user updates re: districts and zip codes


Version published
Maintainers
13
Install size
9.34 MB
Created

Readme

Source

ZIPS User Updates

This simple repo helps consolidate the data flow necessary to find accurate zip codes and Congressional districts for Zendesk users.

Pseudocode usage below. See index.test.ts for exact usage.

import ZIPSUserUpdates from '@indigov/zips-user-updates'

const zipsUserUpdates = ZIPSUserUpdates({
  zipsUrl: 'https://zips.com',
  zipsToken: 'token',
  district: 'AZ-01',
  cohort: 'ushor',
})

for (const user of await fetchAllZendeskUsers()) {
  const userFields = await zipsUserUpdates(user)
  if (userFields) {
    await updateZendeskUser({
      id: user.id,
      user_fields: userFields,
    })
  }
}

FAQs

Last updated on 28 Sep 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc