Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/josecarneiro/funcional
☁️ Simplify working with Google Cloud Platform functions
https://github.com/josecarneiro/funcional
Last synced: about 1 month ago
JSON representation
☁️ Simplify working with Google Cloud Platform functions
- Host: GitHub
- URL: https://github.com/josecarneiro/funcional
- Owner: josecarneiro
- Created: 2017-07-01T18:45:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-29T03:11:51.000Z (about 6 years ago)
- Last Synced: 2024-10-07T01:05:14.211Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 57.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `funcional`
Requires node version `8.x.x`. The compatibility of this library should match the node LTS release schedule, since that is the version used by Google Cloud Functions.
### Client
The client class should be used in response to a `http` trigger.
Initiating it takes two arguments: the `request` and `response` objects passed to the GCP function.
The instance has two methods:
#### json(data[, status])
Stands for a valid response. Responds with a JSON object. Can optionally include a status code (defaults to 200).
#### error(data[, status])
Responds with an error.
### Server
The `funcional` library also includes an interface to interact with GCP functions in the server.
### TO DO:
Rename as `funcional`.