JSPM

  • Created
  • Published
  • Downloads 30087
  • Score
    100M100P100Q26933F
  • License ISC

Set of helpful CLI utilities

Package Exports

  • heroku-cli-util

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (heroku-cli-util) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

heroku-cli-util

Build Status npm version License

Set of helpful CLI utilities

Installation

npm install heroku-cli-util --save

Errors (display in red)

var h = require('heroku-cli-util');
h.error("App not found");
// !    App not found

Warnings (display in yellow)

var h = require('heroku-cli-util');
h.warn("App not found");
// !    App not found

Tables/Columns

var h = require('heroku-cli-util');
h.columnify({
  'Dynos':  1,
  'Region': 'us',
  'Stack':  'cedar-14'
});
// Dynos  1
// Region us
// Stack  cedar-14

Dates

var h = require('heroku-cli-util');
var d = new Date();
console.log(h.formatDate(d));
// 2001-01-01T08:00:00.000Z

Tests

npm install
npm test

License

ISC