Socket
Book a DemoInstallSign in
Socket

@indigov/zips-user-updates

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

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

0.0.27
latest
Source
npmnpm
Version published
Weekly downloads
4
-55.56%
Maintainers
0
Weekly downloads
 
Created
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

Package last updated on 27 Sep 2024

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.