@nexssp/ansi
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "@nexssp/ansi", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Ansi library", | ||
@@ -46,4 +46,4 @@ "main": "dist/ansi.js", | ||
"jest": { | ||
"testEnvironment": "node" | ||
"testEn vironment": "node" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # @nexssp/ansi | ||
![Available colors](nexssp_ansi_colors.png) | ||
![Available colors](/nexssp_ansi_colors.png) | ||
@@ -20,10 +20,10 @@ **bold**, **underscore**, **grey**, **greyBG** **purple**, **purpleBG**, **red**, **redBG** **redBG2**, **green**, **greenBG**, **greenBG2** **blue**, **blueBG**, **blueBG2**, **yellow**, **yellowBG**, **yellowBG2**, **magenta**, **magentaBG**, **magentaBG2**, **cyan**, **cyanBG**, **orangeBG**, **white**, **whiteBG**, **black**, **blackBG** | ||
```js | ||
const ansi = require("@nexssp/ansi"); | ||
const ansi = require('@nexssp/ansi'); | ||
// colors list | ||
console.log(ansi.colors); | ||
console.log(ansi.red("My red text")); | ||
console.log(ansi.red('My red text')); | ||
// or | ||
const { red, blue, yellowBG, bold } = require("@nexssp/ansi"); | ||
console.log(red("my test" + yellowBG(bold("red bold and yellow background")))); | ||
const { red, blue, yellowBG, bold } = require('@nexssp/ansi'); | ||
console.log(red('my test' + yellowBG(bold('red bold and yellow background')))); | ||
``` |
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
22939