Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorForrest L Norvell <forrest@npmjs.com>2014-10-31 00:32:52 +0300
committerForrest L Norvell <forrest@npmjs.com>2014-10-31 11:18:12 +0300
commit239c3086cc1cbee651f9ec85609b8dd3ab8258d7 (patch)
treeb94499fc49bacecc3b5490e525dfd7d59dd43cbf /lib/search.js
parent7719cfdd8b204dfeccc41289707ea58b4d608905 (diff)
style tweaks
Diffstat (limited to 'lib/search.js')
-rw-r--r--lib/search.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/search.js b/lib/search.js
index d2ce9a3c0..68139a7ac 100644
--- a/lib/search.js
+++ b/lib/search.js
@@ -164,7 +164,7 @@ function prettify (data, args) {
dat.keywords = dat.keywords.split(/[,\s]+/)
}
if (Array.isArray(dat.keywords)) {
- dat.keywords = dat.keywords.join(' ')
+ dat.keywords = dat.keywords.join(" ")
}
// split author on whitespace or ,
@@ -172,7 +172,7 @@ function prettify (data, args) {
dat.author = dat.author.split(/[,\s]+/)
}
if (Array.isArray(dat.author)) {
- dat.author = dat.author.join(' ')
+ dat.author = dat.author.join(" ")
}
return dat
})
@@ -194,7 +194,7 @@ function prettify (data, args) {
include: columns
, truncate: truncate
, config: {
- name: { maxWidth: 40, truncate: false, truncateMarker: '' }
+ name: { maxWidth: 40, truncate: false, truncateMarker: "" }
, description: { maxWidth: 60 }
, author: { maxWidth: 20 }
, date: { maxWidth: 11 }
@@ -260,9 +260,9 @@ function getMaxWidth() {
function trimToMaxWidth(str) {
var maxWidth = getMaxWidth()
- return str.split('\n').map(function(line) {
+ return str.split("\n").map(function(line) {
return line.slice(0, maxWidth)
- }).join('\n')
+ }).join("\n")
}
function highlightSearchTerms(str, terms) {