Skip to content

Commit

Permalink
Include Chalk
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Jan 24, 2017
1 parent af6659f commit 3cf5b9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const convert = require('xml-js')
const mercator = require('global-mercator')
const chalk = require('chalk')

// Default Values
const MINZOOM = 0
Expand Down Expand Up @@ -404,6 +405,6 @@ function normalize (url) {
* Pretty Error message
*/
function error (...message) {
console.log('[Error] ' + message.join(' '))
console.log(chalk.bgRed.white('[Error] ' + message.join(' ')))
throw new Error(message.join(' '))
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
},
"homepage": "https://github.com/DenisCarriere/wmts#readme",
"dependencies": {
"chalk": "^1.1.3",
"global-mercator": "^1.6.2",
"xml-js": "^0.9.7"
},
Expand Down

0 comments on commit 3cf5b9d

Please sign in to comment.