Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
16
decreased by-50%
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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc