npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@google-cloud/nodejs-common

v2.2.2

Published

A NodeJs common library for solutions based on Cloud Functions

Downloads

645

Readme

NodeJS Common Library

A NodeJs common library for other projects, e.g. GMP and Google Ads Connector and Data Tasks Coordinator. This library includes:

  1. Authentication wrapper based on google auth library to support OAuth, JWT and ADC authentication;

  2. Wrapper for some Google APIs for integration, mainly for GMP and Google Ads Connector:

    • Google Analytics data import
    • Google Analytics measurement protocol
    • Campaign Manager offline conversion upload
    • Search Ads 360 conversions upload
    • Google Ads click conversions upload
    • Google Ads customer match upload
    • Google Ads enhanced conversions upload
    • Google Ads offline userdata job data upload
    • Google Ads conversions scheduled uploads based on Google Sheets
    • Measurement Protocol Google Analytics 4
  3. Wrapper for some Google APIs for reporting, mainly for Data Tasks Coordinator:

    • Google Ads reporting
    • Campaign Manager reporting
    • Search Ads 360 reporting
    • Display and Video 360 reporting
    • YouTube Data API
    • Ads Data Hub querying
  4. Utilities wrapper class for Google Cloud Products:

    • Firestore Access Object: Firestore has two modes[comparison] which have different API. This class, with its two successors, offer a unified interface to operate data objects within or not a transaction on either Firestore Native mode or Firestore Datastore mode.

    • AutoMl Tables API: Offers a unified entry to use this API based on Google Cloud client library combined with REST requests to service directly due to some functionalities missed in the client library.

    • Vertex AI API: Offers a unified entry to use this API based on Google Cloud client library.

    • Pub/Sub Utilities: Offers utilities functions to create topics and subscriptions for Pub/Sub, as well as the convenient way to publish a message.

    • Storage Utilities: Offers functions to manipulate the files on Cloud Storage. The main functions are:

      • Reading a given length (or slightly less) content without breaking a line;
      • Splitting a file into multiple files with the given length (or slightly less) without breaking a line;
      • Merging files into one file.
    • Cloud Scheduler Adapter: A wrapper to pause and resume Cloud Scheduler jobs.

    • ~~Cloud Functions Adapter: Cloud Functions have different parameters in different environments, e.g. Node6 vs Node8. This utility file offers an adapter to wrap a Node8 Cloud Functions into Node6 and Node8 compatible functions.~~ (This has been removed since v1.9.0)

  5. A share library for Bash to facilitate installation tasks.