Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #216 from Marak/develop
v1.2.0
- Loading branch information
Showing
12 changed files
with
361 additions
and
66 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Development files | ||
/tests/ | ||
/.travis.yml | ||
/screenshots |
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,5 +1,10 @@ | ||
language: node_js | ||
node_js: | ||
- "9" | ||
- "8" | ||
- "7" | ||
- "6" | ||
- "5" | ||
- "4" | ||
- "0.12" | ||
- "0.11" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
// Type definitions for Colors.js 1.2 | ||
// Project: https://github.com/Marak/colors.js | ||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Staffan Eketorp <https://github.com/staeke> | ||
// Definitions: https://github.com/Marak/colors.js | ||
|
||
export interface Color { | ||
(text: string): string; | ||
|
||
strip: Color; | ||
stripColors: Color; | ||
|
||
black: Color; | ||
red: Color; | ||
green: Color; | ||
yellow: Color; | ||
blue: Color; | ||
magenta: Color; | ||
cyan: Color; | ||
white: Color; | ||
gray: Color; | ||
grey: Color; | ||
|
||
bgBlack: Color; | ||
bgRed: Color; | ||
bgGreen: Color; | ||
bgYellow: Color; | ||
bgBlue: Color; | ||
bgMagenta: Color; | ||
bgCyan: Color; | ||
bgWhite: Color; | ||
|
||
reset: Color; | ||
bold: Color; | ||
dim: Color; | ||
italic: Color; | ||
underline: Color; | ||
inverse: Color; | ||
hidden: Color; | ||
strikethrough: Color; | ||
|
||
rainbow: Color; | ||
zebra: Color; | ||
america: Color; | ||
trap: Color; | ||
random: Color; | ||
zalgo: Color; | ||
} | ||
|
||
export function setTheme(theme: any): void; | ||
|
||
export let enabled: boolean; | ||
|
||
export const strip: Color; | ||
export const stripColors: Color; | ||
|
||
export const black: Color; | ||
export const red: Color; | ||
export const green: Color; | ||
export const yellow: Color; | ||
export const blue: Color; | ||
export const magenta: Color; | ||
export const cyan: Color; | ||
export const white: Color; | ||
export const gray: Color; | ||
export const grey: Color; | ||
|
||
export const bgBlack: Color; | ||
export const bgRed: Color; | ||
export const bgGreen: Color; | ||
export const bgYellow: Color; | ||
export const bgBlue: Color; | ||
export const bgMagenta: Color; | ||
export const bgCyan: Color; | ||
export const bgWhite: Color; | ||
|
||
export const reset: Color; | ||
export const bold: Color; | ||
export const dim: Color; | ||
export const italic: Color; | ||
export const underline: Color; | ||
export const inverse: Color; | ||
export const hidden: Color; | ||
export const strikethrough: Color; | ||
|
||
export const rainbow: Color; | ||
export const zebra: Color; | ||
export const america: Color; | ||
export const trap: Color; | ||
export const random: Color; | ||
export const zalgo: Color; | ||
|
||
declare global { | ||
interface String { | ||
strip: string; | ||
stripColors: string; | ||
|
||
black: string; | ||
red: string; | ||
green: string; | ||
yellow: string; | ||
blue: string; | ||
magenta: string; | ||
cyan: string; | ||
white: string; | ||
gray: string; | ||
grey: string; | ||
|
||
bgBlack: string; | ||
bgRed: string; | ||
bgGreen: string; | ||
bgYellow: string; | ||
bgBlue: string; | ||
bgMagenta: string; | ||
bgCyan: string; | ||
bgWhite: string; | ||
|
||
reset: string; | ||
// @ts-ignore | ||
bold: string; | ||
dim: string; | ||
italic: string; | ||
underline: string; | ||
inverse: string; | ||
hidden: string; | ||
strikethrough: string; | ||
|
||
rainbow: string; | ||
zebra: string; | ||
america: string; | ||
trap: string; | ||
random: string; | ||
zalgo: string; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
MIT License | ||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
module.exports = function (flag, argv) { | ||
argv = argv || process.argv; | ||
|
||
var terminatorPos = argv.indexOf('--'); | ||
var prefix = /^-{1,2}/.test(flag) ? '' : '--'; | ||
var pos = argv.indexOf(prefix + flag); | ||
|
||
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos); | ||
}; |
Oops, something went wrong.