babel-code-frame
Advanced tools
Comparing version 6.22.0 to 6.26.0
{ | ||
"name": "babel-code-frame", | ||
"version": "6.22.0", | ||
"version": "6.26.0", | ||
"description": "Generate errors that contain a code frame that point to source locations.", | ||
@@ -11,6 +11,6 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"dependencies": { | ||
"chalk": "^1.1.0", | ||
"chalk": "^1.1.3", | ||
"esutils": "^2.0.2", | ||
"js-tokens": "^3.0.0" | ||
"js-tokens": "^3.0.2" | ||
} | ||
} |
@@ -38,7 +38,24 @@ # babel-code-frame | ||
name | type | default | description | ||
-----------------------|----------|-----------------|------------------------------------------------------ | ||
highlightCode | boolean | `false` | Syntax highlight the code as JavaScript for terminals | ||
linesAbove | number | 2 | The number of lines to show above the error | ||
linesBelow | number | 3 | The number of lines to show below the error | ||
forceColor | boolean | `false` | Forcibly syntax highlight the code as JavaScript (for non-terminals); overrides highlightCode | ||
### `highlightCode` | ||
`boolean`, defaults to `false`. | ||
Toggles syntax highlighting the code as JavaScript for terminals. | ||
### `linesAbove` | ||
`number`, defaults to `2`. | ||
Adjust the number of lines to show above the error. | ||
### `linesBelow` | ||
`number`, defaults to `3`. | ||
Adjust the number of lines to show below the error. | ||
### `forceColor` | ||
`boolean`, defaults to `false`. | ||
Enable this to forcibly syntax highlight the code as JavaScript (for non-terminals); overrides `highlightCode`. |
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
7543
5
174
61
Updatedchalk@^1.1.3
Updatedjs-tokens@^3.0.2