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

yoctocolors

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yoctocolors - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

3

base.js

@@ -5,3 +5,4 @@ import tty from 'node:tty';

// TODO: Use a better method when it's added to Node.js (https://github.com/nodejs/node/pull/40240)
const hasColors = tty.WriteStream.prototype.hasColors();
// Lots of optionals here to support Deno.
const hasColors = tty?.WriteStream?.prototype?.hasColors?.() ?? false;

@@ -8,0 +9,0 @@ const format = (open, close) => {

{
"name": "yoctocolors",
"version": "2.1.0",
"version": "2.1.1",
"description": "The smallest and fastest command-line coloring package on the internet",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -18,2 +18,4 @@ <sup>yoctocolors 🌈</sup>

ESM:
```sh

@@ -23,2 +25,8 @@ npm install yoctocolors

Or CommonJS:
```sh
npm install yoctocolors-cjs
```
## Usage

@@ -25,0 +33,0 @@

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