Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nexssp/ansi

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nexssp/ansi - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

4

package.json
{
"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'))));
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc