Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
heroku-cli-util
Advanced tools
Set of helpful CLI utilities
npm install heroku-cli-util --save
var h = require('heroku-cli-util');
h.prompt('email', function (email) {
console.log(`your email is: ${email}`);
});
var h = require('heroku-cli-util');
h.error("App not found");
// ! App not found
var h = require('heroku-cli-util');
h.warn("App not found");
// ! App not found
var h = require('heroku-cli-util');
h.columnify({
'Dynos': 1,
'Region': 'us',
'Stack': 'cedar-14'
});
// Dynos 1
// Region us
// Stack cedar-14
var h = require('heroku-cli-util');
var d = new Date();
console.log(h.formatDate(d));
// 2001-01-01T08:00:00.000Z
Used for initializing a plugin command.
It will set the cwd
to the user's current location,
give you an auth'ed instance of heroku-client
,
and cleanly handle API exceptions.
It uses co
so you can yield
promises.
let h = require('heroku-cli-util');
module.exports.commands = [
{
topic: 'apps',
command: 'info',
needsAuth: true,
needsApp: true,
run: h.command(function* (context, heroku) {
let app = yield heroku.apps(context.app).info();
console.dir(app);
})
}
];
var h = require('heroku-cli-util');
h.preauth("APPNAME", "APITOKEN", function (err) {
console.log('preauthed');
});
npm install
npm test
ISC
FAQs
Set of helpful CLI utilities
The npm package heroku-cli-util receives a total of 31,442 weekly downloads. As such, heroku-cli-util popularity was classified as popular.
We found that heroku-cli-util demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.