heroku-cli-util
Advanced tools
Comparing version 1.5.0 to 1.7.0
@@ -0,3 +1,8 @@ | ||
var errors = require('./errors'); | ||
exports.run = require('./run'); | ||
exports.log = console.log; | ||
exports.formatDate = require('./date').formatDate; | ||
exports.error = errors.error; | ||
exports.warn = errors.warn; | ||
exports.columnify = require('./columnify'); |
{ | ||
"name": "heroku-cli-util", | ||
"version": "1.5.0", | ||
"version": "1.7.0", | ||
"description": "Set of helpful CLI utilities", | ||
@@ -24,3 +24,7 @@ "main": "cli.js", | ||
"netrc": "*" | ||
}, | ||
"dependencies": { | ||
"chalk": "^1.0.0", | ||
"columnify": "^1.4.1" | ||
} | ||
} |
@@ -14,2 +14,32 @@ # heroku-cli-util | ||
## Errors (display in red) | ||
```js | ||
var h = require('heroku-cli-util'); | ||
h.error("App not found"); | ||
// ! App not found | ||
``` | ||
## Warnings (display in yellow) | ||
```js | ||
var h = require('heroku-cli-util'); | ||
h.warn("App not found"); | ||
// ! App not found | ||
``` | ||
## Tables/Columns | ||
```js | ||
var h = require('heroku-cli-util'); | ||
h.columnify({ | ||
'Dynos': 1, | ||
'Region': 'us', | ||
'Stack': 'cedar-14' | ||
}); | ||
// Dynos 1 | ||
// Region us | ||
// Stack cedar-14 | ||
``` | ||
## Dates | ||
@@ -20,3 +50,4 @@ | ||
var d = new Date(); | ||
console.log(h.formatDate(d)); // 2001-01-01T08:00:00.000Z | ||
console.log(h.formatDate(d)); | ||
// 2001-01-01T08:00:00.000Z | ||
``` | ||
@@ -23,0 +54,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8595
16
221
64
2
+ Addedchalk@^1.0.0
+ Addedcolumnify@^1.4.1
+ Addedansi-regex@2.1.15.0.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedclone@1.0.4(transitive)
+ Addedcolumnify@1.6.0(transitive)
+ Addeddefaults@1.0.4(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedstrip-ansi@3.0.16.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
+ Addedwcwidth@1.0.1(transitive)