-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9310731
commit 648012f
Showing
7 changed files
with
35 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,8 @@ var getStdin = _interopDefault(require('get-stdin')); | |
var updateNotifier = _interopDefault(require('update-notifier')); | ||
var commonTags = require('common-tags'); | ||
var string = require('@thebespokepixel/string'); | ||
var _merge = _interopDefault(require('lodash/merge')); | ||
var trucolor = require('trucolor'); | ||
var deepAssign = _interopDefault(require('deep-assign')); | ||
var path = require('path'); | ||
var terminalFeatures = _interopDefault(require('term-ng')); | ||
var columnify = _interopDefault(require('columnify')); | ||
|
@@ -26,7 +26,7 @@ var _split = _interopDefault(require('lodash/split')); | |
var _forEach = _interopDefault(require('lodash/forEach')); | ||
|
||
const name = "truwrap"; | ||
const version = "2.0.2"; | ||
const version = "2.0.3"; | ||
const description = "Smarter terminal text wrapping (handles 24bit color)"; | ||
const author = "Mark Griffiths <[email protected]> (http://thebespokepixel.com/)"; | ||
const main = "index.js"; | ||
|
@@ -211,14 +211,14 @@ var pkg = { | |
badges: badges | ||
}; | ||
|
||
const clr = deepAssign(trucolor.simple({ | ||
const clr = _merge(trucolor.simple({ | ||
format: 'sgr' | ||
}), trucolor.palette({ | ||
format: 'sgr' | ||
}, { | ||
}), { | ||
bright: 'bold rgb(255,255,255)', | ||
dark: '#333' | ||
})); | ||
}); | ||
const colorReplacer = new commonTags.TemplateTag(commonTags.replaceSubstitutionTransformer(/([a-zA-Z]+?)[:/|](.+)/, (match, colorName, content) => `${clr[colorName]}${content}${clr[colorName].out}`)); | ||
|
||
const tabRegex = /\t/g; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "truwrap", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Smarter terminal text wrapping (handles 24bit color)", | ||
"author": "Mark Griffiths <[email protected]> (http://thebespokepixel.com/)", | ||
"main": "index.js", | ||
|
@@ -56,7 +56,6 @@ | |
"ansi-regex": "^5.0.0", | ||
"columnify": "^1.5.4", | ||
"common-tags": "^1.8.0", | ||
"deep-assign": "^3.0.0", | ||
"es6-promisify": "^6.1.1", | ||
"get-stdin": "^8.0.0", | ||
"lodash": "^4.17.19", | ||
|
@@ -161,4 +160,4 @@ | |
] | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters