Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

googleapis-nodejs-functions

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

googleapis-nodejs-functions

Google Cloud Functions Client Library for Node.js (unofficial)

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
43
increased by16.22%
Maintainers
1
Weekly downloads
 
Created
Source

Google Cloud Functions Node.js Library

Table of contents:

  • Quickstart
  • Samples
  • Versioning
  • Contributing
  • License

Quickstart

Before you begin

  1. Select or create a Cloud Platform project.

    Go to the projects page

  2. Enable billing for your project.

    Enable billing

  3. Enable the Google Cloud Functions.

    Enable the API

  4. Set up authentication with a service account so you can access the API from your local workstation.

Installing the client library

npm install --save vizzuality/googleapis-nodejs-functions

Using the client library


// Imports the Google Cloud client library
const { GCF } = require('../build/src'); // @TODO vizzuality/googleapis-nodejs-functions

// Your Google Cloud Platform project ID
const projectId = 'YOUR_PROJECT_ID';

// Creates a client
const gcf = new GCF({
  keyFilename: './credentials.json',
  projectId
});

// Get Functions and metadata
gcf
  .getCloudFunctions()
  .then(data => {
    const fns = data[0];
    //console.log('FUNCTIONS: ', fns);
    const fn = fns[0];
    fn.getMetadata()
    .then(data => {
      console.log('Function: ', data[0]);
    })
    .catch(err => {
      console.error('ERROR:', err);
    });
  })
  .catch(err => {
    console.error('ERROR:', err);
  });

Samples

Versioning

Contributing

License

Apache Version 2.0

See LICENSE

Keywords

FAQs

Package last updated on 17 Sep 2018

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