Comparing version 1.0.7 to 1.0.8
@@ -6,3 +6,3 @@ "use strict" | ||
process.platform === "win32" || | ||
(process.stdout.isTTY && process.env.TERM && process.env.TERM !== "dumb") | ||
(process.stdout != null && process.stdout.isTTY && process.env.TERM && process.env.TERM !== "dumb") | ||
@@ -33,4 +33,2 @@ const rawInit = (open, close, searchRegex, replaceValue) => s => | ||
reset: init(0, 0), | ||
bold: init(1, 22), | ||
dim: init(2, 22), | ||
bold: rawInit("\x1b[1m", "\x1b[22m", /\x1b\[22m/g, "\x1b[22m\x1b[1m"), | ||
@@ -37,0 +35,0 @@ dim: rawInit("\x1b[2m", "\x1b[22m", /\x1b\[22m/g, "\x1b[22m\x1b[2m"), |
@@ -1,19 +0,7 @@ | ||
Copyright © 2015-present [Jorge Bucaran](https://github.com/jorgebucaran) | ||
Copyright © Jorge Bucaran <<https://jorgebucaran.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: | ||
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 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. | ||
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. |
{ | ||
"name": "colorette", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Node.js library for colorizing text using ANSI escape sequences.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,11 +7,4 @@ # Colorette | ||
Colorette is a Node.js library for colorizing text using [ANSI escape sequences](https://en.wikipedia.org/wiki/ANSI_escape_code). | ||
Colorette is a Node.js library for colorizing text using ANSI [escape sequences](https://en.wikipedia.org/wiki/ANSI_escape_code). It's [small](https://bundlephobia.com/result?p=colorette) and [faster](https://github.com/jorgebucaran/colorette#benchmark-results) than alternatives. Each [available style](https://github.com/jorgebucaran/colorette#styles) is a function you can use to wrap your strings in an escape sequence without prototype-chains or learning a domain specific language. Color your terminal using purely functional, idiomatic JavaScript. | ||
## Features | ||
- Zero dependency | ||
- Automatic color support detection | ||
- [Toggle color output on/off](#optionsenabled) as needed | ||
- Need for speed? Colorette is the [fastest](#benchmark-results) terminal colorizer for Node.js | ||
## Installation | ||
@@ -53,3 +46,3 @@ | ||
Nest styles without breaking an existing open sequence. | ||
You can also nest styles without breaking existing escape sequences. | ||
@@ -88,3 +81,3 @@ ```js | ||
Colorette supports the normal and bright color variations. | ||
Colorette supports the standard bright color variations. | ||
@@ -134,8 +127,4 @@ | Colors | Background Colors | Bright Colors | Bright Background Colors | Modifiers | | ||
## To chalk or not to chalk? | ||
Chalk is another Node.js terminal colorizer. Its core feature is a [prototype](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/prototype)-based chainable API where ANSI styles can be used both as properties or methods. Colorette doesn't rely on a domain-specific abstraction, allowing you to write purely functional, idiomatic JavaScript if you don't mind a few more sticking parentheses. | ||
## License | ||
Colorette is MIT licensed. See the [LICENSE](LICENSE.md) for details. | ||
[MIT](LICENSE.md) |
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
9223
115
127