Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
cf-nodejs-client
Advanced tools
This project provides a simple client library to interact with the Cloud Foundry REST API using Node.js. The client provides objects to retrieve information about the following concepts:
Take a look the Tests cases developed with Mocha & Chai to understand some stuff about Cloud Foundry and the usage of this client.
Node.js with Express are a great combination to develop Web applications. If you observe the Sinatra market, you will notice that the community goes in that address. This library could be useful for you to develop a Web Application to interact with a Cloud Foundry Instance.
If you need to interact with a Cloud Foundry platform, install the package in your Node.js development:
npm install cf-nodejs-client --save
Once you have installed the package define in a isolated config file the credentials to operate with the platform:
config.json
{
"endpoint" : "https://api.run.pivotal.io",
"username" : "xxx",
"password" : "yyy"
}
With the credentials defined, create a new file to paste this code to authenticate with the platform.
example.js
"use strict";
var config = require('./config.json');//Load CF configuration
var cloudFoundry = require("cf-nodejs-client").CloudFoundry;
cloudFoundry = new cloudFoundry(config.endpoint);
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
cloudFoundry.getInfo().then(function (result) {
return cloudFoundry.login(result.token_endpoint,config.username,config.password);
}).then(function (result) {
console.log(result);
}).catch(function (reason) {
console.error("Error: " + reason);
});
Save the file and test:
node example.js
If you have question, create an issue.
Juan Antonio
Version 0.0.6 2015-08-20
Better support for: Create App, Upload Bits for App & Start App
32 passing (3m) 3 pending
FAQs
A Cloud Foundry Client for Node.js
The npm package cf-nodejs-client receives a total of 42 weekly downloads. As such, cf-nodejs-client popularity was classified as not popular.
We found that cf-nodejs-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.