Socket
Socket
Sign inDemoInstall

@servicetitan/acquisition-functions

Package Overview
Dependencies
0
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @servicetitan/acquisition-functions

### Synopsis


Version published
Weekly downloads
0
decreased by-100%
Maintainers
5
Created
Weekly downloads
 

Readme

Source

@servicetitan/acquisition-functions

Synopsis

This repo contains Marketing Acquisition properties & filters converters for MongoDB Atlas Functions

Usage in functions

Example:

const { configureProcessor } = require('@servicetitan/acquisition-functions');

const { filterFetcher } = configureProcessor({
    workers: 10,
    mongoDb: mongoDbConnectionToDb,
    fetchProperties: (zip) => mongoDbConnectionToDb.collection('properties').find({zipcode: zip}, {_id: 0}),
});

exports = async () => {
    return filterFetcher.start('000000-999999');
};

Run tests

Locally:

docker-compose up -d mongo
npm run test

In Docker:

docker-compose up --from-exit-code=tests

FAQs

Last updated on 24 May 2024

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