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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@nodeart/bq-tools

v1.0.3

Published

This package consists of 2 parts: 1. Light-weight CLI with minimum dependencies to sync BQ table schemas as one of the steps during deployment. 2. Small BQ client that could be used in a limited [Cloudflare Workers](https://developers.cloudflare.com/worke

Readme

BigQuery Tools

This package consists of 2 parts:

  1. Light-weight CLI with minimum dependencies to sync BQ table schemas as one of the steps during deployment.
  2. Small BQ client that could be used in a limited Cloudflare Workers environment.

CLI

Configuration can be provided via environment variables, command line arguments or a mix of both with command line arguments having priority over environment variables.

Credentials must be specified either via file path in GOOGLE_APPLICATION_CREDENTIALS or as an encoded value in ADC_ENCODED.

Schemas to be synced must be located in directory specified in schemas-path parameter and named in the following format: <table name>.schema.json (e.g. user.schema.json). File content must be a valid JSON that satisfies TableSchema structure. Ref: https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#TableSchema.

Note that prefix/suffix will be concatenated as is without adding extra separators since BigQuery supports multiple special characters that could be used as separators in tables' names. Ref: https://cloud.google.com/bigquery/docs/tables#table_naming.

Usage example:

npx nodeart-bq-cli --dataset=my_dataset --schemas-path=./schemas --table-prefix=project1_ --table-suffix=_stage

| env | arg | type | required | example | description | |:--------------------------------:|:----------------:|:------:|:--------:|:----------------------------:|:-------------------------------------------------------------------------------------------------------:| | BQ_DATASET | --dataset | string | YES | my_dataset | Dataset ID. Ref: https://cloud.google.com/bigquery/docs/datasets#dataset-naming | | BQ_SCHEMAS_PATH | --schemas-path | string | YES | ./path/to/schemas | Path to schemas directory | | GOOGLE_APPLICATION_CREDENTIALS | - | string | NO | ./path/to/credentials.json | Path to ADC file. Ref: https://cloud.google.com/docs/authentication/application-default-credentials#GAC | | ADC_ENCODED | - | string | NO | - | Base64-encoded JSON value of Application Default Credentials | | BQ_TABLE_PREFIX | --table-prefix | string | NO | some_prefix_ | Prefix that will be added to the beginning of tables' names when syncing their schemas | | BQ_TABLE_SUFFIX | --table-suffix | string | NO | _and_suffix | Suffix that will be added to the end of tables' names when syncing their schemas |