{"id":19081553,"url":"https://github.com/tuancamtbtx/gcp-udfs-example","last_synced_at":"2025-07-04T00:38:48.214Z","repository":{"id":205025489,"uuid":"710621487","full_name":"tuancamtbtx/gcp-udfs-example","owner":"tuancamtbtx","description":"Google BigQuery Javascript UDF Function Examples","archived":false,"fork":false,"pushed_at":"2024-01-02T16:24:39.000Z","size":105,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-22T06:13:44.117Z","etag":null,"topics":["bigquery","gcp","javascript","nodejs","npm","udf"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tuancamtbtx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-27T04:51:05.000Z","updated_at":"2024-07-02T04:53:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"a2568ae7-d765-4224-ab57-b02090bc98da","html_url":"https://github.com/tuancamtbtx/gcp-udfs-example","commit_stats":null,"previous_names":["tuancamtbtx/gcp-udfs-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tuancamtbtx/gcp-udfs-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuancamtbtx%2Fgcp-udfs-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuancamtbtx%2Fgcp-udfs-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuancamtbtx%2Fgcp-udfs-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuancamtbtx%2Fgcp-udfs-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuancamtbtx","download_url":"https://codeload.github.com/tuancamtbtx/gcp-udfs-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuancamtbtx%2Fgcp-udfs-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263426664,"owners_count":23464806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bigquery","gcp","javascript","nodejs","npm","udf"],"created_at":"2024-11-09T02:36:49.472Z","updated_at":"2025-07-04T00:38:48.185Z","avatar_url":"https://github.com/tuancamtbtx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google BigQuery Javascript UDF Function Examples\n![Google Badge](https://img.shields.io/badge/GoogleCloud-4285F4?style=for-the-badge\u0026labelColor=black\u0026logo=Google%20Cloud\u0026logoColor=white)\n\n## Progaming language\n![Nodejs Badge](https://img.shields.io/badge/-Nodejs-3C873A?style=for-the-badge\u0026labelColor=black\u0026logo=node.js\u0026logoColor=3C873A)\n\n## Install\n\n```\nnvm use\nnpm install\n```\n## Lint Code\nBefore push this code to Github (Please run)\n```\nnpm run lint\n```\n## Testing\n\nTo run unit tests:\n\n```\nnpm run test\n```\n\nTo run the distribution asset tests:\n\n```\nnpm run build\nnpm run test:dist\n````\n\n## Deploy\n\n*This requires your terminal to be authenticated with the GCloud SDK*\n\n```\nexport DEST_BUCKET=your_bucket_name\nexport GCP_PROJECT=your_project_gcp_id\n\nnpm run build\nnpm run deploy\n```\n\n*To Create UDF Function on A Dataset Bigquery*\n```\nCREATE FUNCTION `${dataset_name}`.stringFormatter(input STRING)\n  RETURNS STRING\n    LANGUAGE js\n    OPTIONS (\n      library=[\"gs://js-udfs/bigquery-js-udf-example/dist/dist.js\"]\n    )\n    AS r\"\"\"\n      return stringFormatter.format(input);\n    \"\"\"\n;\n\nSELECT `${dataset_name}`.stringFormatter(\"I am Tuan Cam \") AS result;\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuancamtbtx%2Fgcp-udfs-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuancamtbtx%2Fgcp-udfs-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuancamtbtx%2Fgcp-udfs-example/lists"}