annotate-code
Advanced tools
Comparing version 1.0.0 to 1.1.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.annotate = void 0; | ||
const BOLD = '\x1b[1m'; | ||
const RED = BOLD + '\x1b[31m'; | ||
const GREY = '\x1b[90m'; | ||
const RESET = '\x1b[0m'; | ||
// colors | ||
const isTTY = typeof process !== undefined && process.stdout.isTTY; | ||
const BOLD = isTTY ? '\x1b[1m' : ''; | ||
const RED = isTTY ? BOLD + '\x1b[31m' : ''; | ||
const GREY = isTTY ? '\x1b[90m' : ''; | ||
const RESET = isTTY ? '\x1b[0m' : ''; | ||
// shapes | ||
const BAR = ' │ '; | ||
@@ -9,0 +12,0 @@ const LF = GREY + '¬' + RESET; |
@@ -1,5 +0,8 @@ | ||
const BOLD = '\x1b[1m'; | ||
const RED = BOLD + '\x1b[31m'; | ||
const GREY = '\x1b[90m'; | ||
const RESET = '\x1b[0m'; | ||
// colors | ||
const isTTY = typeof process !== undefined && process.stdout.isTTY; | ||
const BOLD = isTTY ? '\x1b[1m' : ''; | ||
const RED = isTTY ? BOLD + '\x1b[31m' : ''; | ||
const GREY = isTTY ? '\x1b[90m' : ''; | ||
const RESET = isTTY ? '\x1b[0m' : ''; | ||
// shapes | ||
const BAR = ' │ '; | ||
@@ -6,0 +9,0 @@ const LF = GREY + '¬' + RESET; |
@@ -6,3 +6,3 @@ { | ||
"description": "beautifully annotate source code with a message, given an index, like a parser or compiler", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"license": "MIT", | ||
@@ -9,0 +9,0 @@ "repository": { |
@@ -52,3 +52,3 @@ <h1 align="center">annotate-code</h1> | ||
[src/index.ts:40-156](https://github.com/stagas/annotate-code/blob/3b8857dd004347f6651026657c522213ee6d560e/src/index.ts#L40-L156 "Source code on GitHub") | ||
[src/index.ts:44-160](https://github.com/stagas/annotate-code/blob/4390275c76e1c9b679c13fdb38f4e1b138672f64/src/index.ts#L44-L160 "Source code on GitHub") | ||
@@ -55,0 +55,0 @@ Annotates a source code string given an index and a message. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31991
292