Comparing version 0.3.0 to 0.3.1
require('colors'); | ||
const boxed = require('./'); | ||
const log = (...args) => console.log(boxed(...args)); | ||
const log = (...args) => console.log(boxed(...args)); // eslint-disable-line no-console | ||
@@ -6,0 +6,0 @@ log(''); |
@@ -81,7 +81,5 @@ const colors = require('colors'); | ||
throw new Error(`colors does not support color "${color}"`); | ||
return; | ||
} | ||
if (!themes.hasOwnProperty(theme)) { | ||
throw new Error(`themes do not include a "${theme}" theme`); | ||
return; | ||
} | ||
@@ -128,4 +126,3 @@ | ||
default: | ||
const linePad = Math.ceil(w - (w - length(line)) / 2); | ||
return line.padEnd(linePad, ' ').padStart(w, ' ') | ||
return line.padEnd(Math.ceil(w - (w - length(line)) / 2), ' ').padStart(w, ' ') | ||
} | ||
@@ -132,0 +129,0 @@ })(); |
{ | ||
"name": "boxt", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Create boxes around text", | ||
"author": "omri", | ||
"author": "omrilotan", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/omrilotan/boxt.git" | ||
"url": "git+https://github.com/omrilotan/mono.git" | ||
}, | ||
"homepage": "https://omrilotan.github.io/mono/boxt/", | ||
"main": "index.js", | ||
"scripts": { | ||
"prepublishOnly": "npm t", | ||
"start": "node examples", | ||
"test": "mocha test.js lib/**/test.js" | ||
"start": "node examples" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"colors": "^1.1.2" | ||
"colors": "^1.3.0" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.1.2", | ||
"mocha": "^5.0.1" | ||
}, | ||
"publishConfig": { | ||
@@ -25,0 +20,0 @@ "tag": "latest" |
@@ -1,2 +0,2 @@ | ||
# boxt | ||
# boxt [](https://www.npmjs.com/package/boxt) [](https://github.com/omrilotan/mono) | ||
@@ -3,0 +3,0 @@ <p align="center"><img width="363" alt="boxt" src="https://user-images.githubusercontent.com/516342/34468260-c7ab5682-ef0d-11e7-8a84-c9baa16cabaa.png"></p> |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
0
9396
6
244
Updatedcolors@^1.3.0